Skip to content
  1. Jan 05, 2019
  2. Jan 03, 2019
  3. Jan 02, 2019
  4. Jan 01, 2019
  5. Dec 31, 2018
  6. Dec 30, 2018
    • hydrargyrum's avatar
      weboob.tools.application: let bcall_errors_handler return exit code · 8571f042
      hydrargyrum authored and Romain Bignon's avatar Romain Bignon committed
      Currently, weboob commands still return 0 even when an exception is
      raised. Let bcall_errors_handler decide the return code instead of
      always 0.
      
      A good return code is hard because of several things:
      
      * there might be multiple exceptions in a BCallErrors, so values
      returned by bcall_error_handler (single exception) cannot easily be
      combined
      * the base implemententation of bcall_errors_handler cannot be polluted
      with a lot of exception subclasses
      
      So, any non-MoreResultsAvailable will cause a non-zero return code.
      
      Should fix https://git.weboob.org/weboob/devel/issues/74.
      8571f042