mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
py/vm: Don't emit warning when using "raise ... from None".
"Raise SomeException() from None" is a common Python idiom to suppress chained exceptions and thus shouldn't trigger a warning on a version of Python that doesn't support them in the first place.
This commit is contained in:
committed by
Damien George
parent
5232847771
commit
3fb1bb131f
@@ -1,2 +1,3 @@
|
||||
Warning: exception chaining not supported
|
||||
Caught Exception
|
||||
Warning: exception chaining not supported
|
||||
Caught Exception: Runtime
|
||||
|
||||
Reference in New Issue
Block a user