Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Musings: Using decorators to reduce duplicate exception handling
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Diez B. Roggisch, post: 3800580"] I think the answer depends a lot on the actual error handling performed. If you want retries, either immediately, or with some larger prologue, it might make sense to abstract that away (I would have suggested the context-manager thing myself, but Cameron did that already). But if you essentially want to abort in all cases, I'd just push the handling upwards, and rather improve the error reporting itself, e.g. by storing away the trace in a temporary file the user can send you. Diez [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Musings: Using decorators to reduce duplicate exception handling
Top