Message279689
Motivation for the patch came from a tweet[1] of David Beazley:
def SomeError(Exception):
pass
raise SomeError('blah')
(Note the `def` keyword instead of `class`):
If you run that, you get:
> TypeError: exceptions must derive from BaseException
Which is not very helpful.
Attached patch changes the error message to be:
> TypeError: exceptions must derive from BaseException, got NoneType
(By the way, it's very close to what Python2 used to say in this case) |
|
Date |
User |
Action |
Args |
2016-10-29 18:16:31 | Dimitri Merejkowsky | set | recipients:
+ Dimitri Merejkowsky |
2016-10-29 18:16:31 | Dimitri Merejkowsky | set | messageid: <1477764991.61.0.67228056749.issue28559@psf.upfronthosting.co.za> |
2016-10-29 18:16:31 | Dimitri Merejkowsky | link | issue28559 messages |
2016-10-29 18:16:31 | Dimitri Merejkowsky | create | |
|