Message410220
Lib/logging/config.py has this, which looks like it's partly remnants of old exception handling APIs:
except ImportError:
e, tb = sys.exc_info()[1:]
v = ValueError('Cannot resolve %r: %s' % (s, e))
v.__cause__, v.__traceback__ = e, tb
raise v
It is clearer if written as:
except ImportError as e:
v = ValueError('Cannot resolve %r: %s' % (s, e))
raise v from e
(note that this doesn't copy the traceback from e to v, but this is redundant information anyway because e is chained to v as the cause). |
|
Date |
User |
Action |
Args |
2022-01-10 14:39:59 | iritkatriel | set | recipients:
+ iritkatriel, vinay.sajip |
2022-01-10 14:39:59 | iritkatriel | set | messageid: <1641825599.38.0.903914587278.issue46332@roundup.psfhosted.org> |
2022-01-10 14:39:59 | iritkatriel | link | issue46332 messages |
2022-01-10 14:39:59 | iritkatriel | create | |
|