Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated import of winreg
  • Loading branch information
mkals committed Apr 8, 2019
commit 0b299f17a3ab5ce24e3b7dc4f0245b3f12fc8a63
4 changes: 2 additions & 2 deletions Arduino/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import sys
if sys.platform.startswith('win'):
import _winreg as winreg
import winreg
else:
import glob

Expand All @@ -24,7 +24,7 @@ def enumerate_serial_ports():
path = 'HARDWARE\\DEVICEMAP\\SERIALCOMM'
try:
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, path)
except OSError: # TODO
except OSError:
raise Exception

for i in itertools.count():
Expand Down