diff options
author | sebastian.sjoholm <sebastian.sjoholm@gmail.com> | 2012-12-28 10:29:06 +0000 |
---|---|---|
committer | sebastian.sjoholm <sebastian.sjoholm@gmail.com> | 2012-12-28 10:29:06 +0000 |
commit | 1136d42d405044101fa7633d3662b0dd359e2733 (patch) | |
tree | 54c9773a6f3cb33e692bf24f412aa82f676a52d0 | |
parent | 77a41685bca36788905c346be586ee835ed2bd28 (diff) | |
download | drcontrol-1136d42d405044101fa7633d3662b0dd359e2733.zip drcontrol-1136d42d405044101fa7633d3662b0dd359e2733.tar.gz |
-rwxr-xr-x | drcontrol.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drcontrol.py b/drcontrol.py index 56d9955..4d9749d 100755 --- a/drcontrol.py +++ b/drcontrol.py @@ -127,8 +127,8 @@ def set_relay(): if cmdarg.verbose: print "Current state: " + bb.port - except Exception: - print "Error: Problem with device, or device not exists" + except Exception, err: + print "Error: Problem with device, or device not exists: " + err sys.exit(1) def check(): |