Skip to content

Commit dca0634

Browse files
committed
Use raise from
1 parent 07476ba commit dca0634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discid/libdiscid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _open_library(lib_name):
100100
except OSError as exc:
101101
if lib_name not in str(exc):
102102
# replace uninformative Error on Windows
103-
raise OSError("could not find libdiscid: %s" % lib_name)
103+
raise OSError("could not find libdiscid: %s" % lib_name) from exc
104104
else:
105105
raise
106106

0 commit comments

Comments
 (0)