8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0c392 commit 0d63967Copy full SHA for 0d63967
Lib/logging/config.py
@@ -30,7 +30,6 @@
30
import logging.handlers
31
import re
32
import struct
33
-import sys
34
import threading
35
import traceback
36
@@ -392,11 +391,9 @@ def resolve(self, s):
392
391
self.importer(used)
393
found = getattr(found, frag)
394
return found
395
- except ImportError:
396
- e, tb = sys.exc_info()[1:]
+ except ImportError as e:
397
v = ValueError('Cannot resolve %r: %s' % (s, e))
398
- v.__cause__, v.__traceback__ = e, tb
399
- raise v
+ raise v from e
400
401
def ext_convert(self, value):
402
"""Default converter for the ext:// protocol."""
0 commit comments