-
Notifications
You must be signed in to change notification settings - Fork 54
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
test-battery: pycodestyle #2128
Conversation
(Would this work on our site?) |
No, hence I have left the |
c302bfd
to
cf3dbc8
Compare
@@ -109,7 +109,7 @@ def index(self, *_): | |||
"""Provide the index page.""" | |||
try: | |||
return self._render() | |||
except: | |||
except (KeyError, AttributeError, jinja2.exceptions.TemplateError): |
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.
jinja2.exceptions.TemplateError
might be sufficient here?
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.
Most likely. The client will get a 500 in the worst case.
self.event_handler.contexts.get(uuid).handle.close() | ||
except: | ||
self.event_handler.contexts[uuid].handle.close() | ||
except (KeyError, IOError, AttributeError): |
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.
possibly TypeError
as well?
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.
I can't see how.
./t/rose-suite-restart/02-basic.t fixed by #2123 |
@stevewardle do you mind doing a sanity check for us? |
Looks perfectly reasonable to me |
The python
pep8
package has been renamedpycodestyle
to avoid confusion.This fixes
t/syntax/00-lib.t
which will fail with newer versions ofpep8
due to a depreciation notice.