4 ms·
Where 'in your code' is a module. Then log the exception and raise a new exception with a module-specific code. requests.exceptions.RequestException is a good e
by rgacote 10y ago
Where 'in your code' is a module. Then log the exception and raise a new exception with a module-specific code. requests.exceptions.RequestException is a good example.
My modules do catch SystemExit and KeyboardInterrupt before the bare exception and simply re-raise those.