Skip to content

Commit

Permalink
used finally in open exception block as experiment and changed except…
Browse files Browse the repository at this point in the history
…ion message.
  • Loading branch information
john committed Nov 26, 2012
1 parent 66adfef commit 289f69e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dum.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def SetDevice():
try:
Device = u3.U3()
except u3.NullHandleException:
print "Frooooooooooooommm... "
print "No Labjack device found... "
finally:
from sys import exit
exit()

Expand Down

0 comments on commit 289f69e

Please sign in to comment.