[weboob] [PATCH 1/2] let bcall_error_handler handle NotImplementedError

Pierre-Louis Bonicoli pierre-louis.bonicoli at gmx.fr
Sun Jul 26 01:54:52 CEST 2015


Signed-off-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli at gmx.fr>
---
 weboob/applications/boobill/boobill.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/weboob/applications/boobill/boobill.py b/weboob/applications/boobill/boobill.py
index a2d3a77..ce95a7e 100644
--- a/weboob/applications/boobill/boobill.py
+++ b/weboob/applications/boobill/boobill.py
@@ -69,7 +69,6 @@ class Boobill(ReplApplication):
             l.append((id, backend_name))
 
         more_results = []
-        not_implemented = []
         self.start_format()
         for id, backend in l:
             names = (backend,) if backend is not None else None
@@ -80,16 +79,11 @@ class Boobill(ReplApplication):
                 for backend, error, backtrace in errors:
                     if isinstance(error, MoreResultsAvailable):
                         more_results.append(id + u'@' + backend.name)
-                    elif isinstance(error, NotImplementedError):
-                        if backend not in not_implemented:
-                            not_implemented.append(backend)
                     else:
                         self.bcall_error_handler(backend, error, backtrace)
 
         if len(more_results) > 0:
             print('Hint: There are more results available for %s (use option -n or count command)' % (', '.join(more_results)), file=self.stderr)
-        for backend in not_implemented:
-            print(u'Error(%s): This feature is not supported yet by this backend.' % backend.name, file=self.stderr)
 
     def do_subscriptions(self, line):
         """
-- 
2.1.4




More information about the weboob mailing list