From bd44734f7871a52057a412582f44e83b07749d06 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 23 Oct 2010 11:15:14 +0200 Subject: [PATCH] display a notice to encourage user to contribute when NotImplementedError is raised --- weboob/tools/application/repl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index 86d73424..a5a16bff 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -340,6 +340,10 @@ class ReplApplication(Cmd, BaseApplication): if not msg: msg = 'website is unavailable.' print >>sys.stderr, u'Error(%s): %s' % (backend.name, msg) + elif isinstance(error, NotImplementedError): + print >>sys.stderr, u'Error(%s): this feature is not supported yet by this backend.' % backend.name + print >>sys.stderr, u' %s To help the maintainer of this backend implement this feature,' % (' ' * len(backend.name)) + print >>sys.stderr, u' %s please contact: %s <%s>' % (' ' * len(backend.name), backend.MAINTAINER, backend.EMAIL) else: print >>sys.stderr, u'Error(%s): %s' % (backend.name, error) if logging.root.level == logging.DEBUG: