Skip to content

Commit aada866

Browse files
authored
Raise SystemError instead of plain Exception in case of internal version inconsistency
1 parent ed38c20 commit aada866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ctypes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from struct import calcsize as _calcsize
2020

2121
if __version__ != _ctypes_version:
22-
raise Exception("Version number mismatch", __version__, _ctypes_version)
22+
raise SystemError("Version number mismatch", __version__, _ctypes_version)
2323

2424
if _os.name == "nt":
2525
from _ctypes import COMError, CopyComPointer, FormatError

0 commit comments

Comments
 (0)