Replies: 2 comments
-
To expand on that idea:
class MyClass:
pass
try:
raise MyClass # No error here
except MyClass: # Type[MyClass] is not a valid exception class
pass
my_var = None
raise my_var # No error |
Beta Was this translation helpful? Give feedback.
0 replies
-
We'd need to decide if it's worth only showing things that are exceptions after raise/except; one gotcha is that it's totally legal to write something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment data
Expected/Suggested behaviour
Do not suggest
NotImplemented
forraise
andexcept
. It should always beNotImplementedError
.Unfortunately this is quite a common issue, especially with beginners.
Code Snippet / Additional information
Beta Was this translation helpful? Give feedback.
All reactions