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 a147485 commit ed78907Copy full SHA for ed78907
src/pointers/constants.py
@@ -54,10 +54,12 @@ def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
54
faulthandler.enable()
55
56
return call
57
- except RuntimeError as e:
+ except (RuntimeError, OSError) as e:
58
msg = str(e)
59
60
- if not msg.startswith("segment"):
+ if not msg.startswith("segment violation") and not msg.startswith(
61
+ "access violation"
62
+ ):
63
raise
64
65
with suppress(UnsupportedOperation):
0 commit comments