-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Followup to exception refactoring #3959
Followup to exception refactoring #3959
Conversation
…ed with my semiautomatic refactorings.
@@ -607,7 +607,7 @@ def traverse( folder ): | |||
log.exception( "Unable to create archive for download" ) | |||
raise exceptions.InternalServerError( "Unable to create archive for download." ) | |||
except Exception: | |||
log.exception( "Unexpected error %s in create archive for download", sys.exc_info()[ 0 ] ) | |||
log.exception( "Unexpected error %s in create archive for download" ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove %s
too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, one more commit coming. sys is also unused now.
@@ -1863,7 +1863,7 @@ def __str__( self ): | |||
status = 'error' | |||
except: | |||
error = True | |||
log.exception( "Unexpected error %s in create archive for download", sys.exc_info()[0] ) | |||
log.exception( "Unexpected error %s in create archive for download" ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
xref #3933 |
Fixes a few issues @nsoranzo noticed with my semiautomatic refactorings.