Skip to content

Commit

Permalink
fixes some code smalls
Browse files Browse the repository at this point in the history
  • Loading branch information
mhubig committed Feb 3, 2016
1 parent 8545f88 commit dfe323f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion implib2/imp_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def close_device(self):
try:
self.ser.flush()
self.ser.close()
except:
except serial.SerialException:
pass
finally:
time.sleep(0.05) # 50ms
Expand Down
4 changes: 2 additions & 2 deletions implib2/imp_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,8 @@ def _set_sdi12_address(self, address=0):
table = 'SYSTEM_PARAMETER_TABLE'
param = 'ModuleInfo1'

sdi12_address_rage = (range(0, 9) + [c for c in string.lowercase]
+ [C for C in string.uppercase])
sdi12_address_rage = (range(0, 9) + [c for c in string.lowercase] +
[C for C in string.uppercase])

if address not in sdi12_address_rage:
raise ModuleError("SDI12 address out of range!")
Expand Down

0 comments on commit dfe323f

Please sign in to comment.