Skip to content

Commit ed78907

Browse files
committed
quick patch with windows
1 parent a147485 commit ed78907

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pointers/constants.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
5454
faulthandler.enable()
5555

5656
return call
57-
except RuntimeError as e:
57+
except (RuntimeError, OSError) as e:
5858
msg = str(e)
5959

60-
if not msg.startswith("segment"):
60+
if not msg.startswith("segment violation") and not msg.startswith(
61+
"access violation"
62+
):
6163
raise
6264

6365
with suppress(UnsupportedOperation):

0 commit comments

Comments
 (0)