Skip to content

Commit 8257e8d

Browse files
committed
Fix ImportError on Windows
1 parent f4da255 commit 8257e8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pslab/serial_handler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
>>> version = device.get_version()
88
>>> device.disconnect()
99
"""
10-
import grp
10+
try:
11+
import grp
12+
except ImportError:
13+
pass
14+
1115
import logging
1216
import os
1317
import platform

0 commit comments

Comments
 (0)