Skip to content

Commit 4698c98

Browse files
chore: nicer error message for windows users
1 parent 4c34340 commit 4698c98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sh.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
from collections.abc import Mapping
2929

3030
import errno
31-
import fcntl
31+
try:
32+
import fcntl
33+
except ImportError:
34+
raise RuntimeError("This only works on *nix systems. Try Docker?")
3235
import gc
3336
import getpass
3437
import glob as glob_module

0 commit comments

Comments
 (0)