We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
except
Some exception handling code take the generic type Exception in except and, in a couple cases:
Exception
pico-bot/picobot/handlers.py
Line 175 in f4c6255
Line 220 in f4c6255
Line 272 in f4c6255
And, after #34 is merged:
Line 342 in 033e461
So instead of doing:
except Exception as exc: if isinstance(exc, SpecificType):
We should slightly rework the code to get exceptions as:
except SpecificType as error:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Some exception handling code take the generic type
Exception
inexcept
and, in a couple cases:pico-bot/picobot/handlers.py
Line 175 in f4c6255
pico-bot/picobot/handlers.py
Line 220 in f4c6255
pico-bot/picobot/handlers.py
Line 272 in f4c6255
And, after #34 is merged:
pico-bot/picobot/handlers.py
Line 342 in 033e461
So instead of doing:
We should slightly rework the code to get exceptions as:
The text was updated successfully, but these errors were encountered: