Skip to content

BaseException instead of Exception

I found a bug using the library together with celery, during an error related to executing a function from your library, celery pointed to something completely different: billiard.exceptions.WorkerLostError: Worker exited prematurely: exitcode 0 Job: 1., It is related to the fact that you are using the BaseException class in your code. It's usually a bad practice to use exceptions inheriting from BaseException , because important exceptions like KeyboardInterrupt or SystemExit also inherit from BaseException. In your code, this appears in the connector_errors.py file. You can easily replace the BaseException with an Exception class - I tested it.