Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Improve exception re-rasing #98

Open
webknjaz opened this issue Mar 25, 2016 · 0 comments
Open

Improve exception re-rasing #98

webknjaz opened this issue Mar 25, 2016 · 0 comments

Comments

@webknjaz
Copy link
Member

webknjaz commented Mar 25, 2016

TODO

Replace raising syntax with better version in except blocks everywhere if possible.

old way:

try:
    doSmth()
except SomeError:
    logger.exception(...)
    raise NewError

better way:

try:
    doSmth()
except SomeError as se:
    logger.exception(...)
    raise NewError from se
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants