Skip to content

Commit 37a163a

Browse files
authored
Merge pull request #2699 from benderl/bugfix
fix python2 FileNotFoundError
2 parents cee34db + 9c493ca commit 37a163a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mpm3pmll/readall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def detect_modbus_usb_port():
1717
try:
1818
with open(device):
1919
return device
20-
except FileNotFoundError:
20+
except Exception:
2121
pass
2222
return known_devices[-1] # this does not make sense, but is the same behavior as the old code
2323

0 commit comments

Comments
 (0)