summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebastian.sjoholm <sebastian.sjoholm@gmail.com>2012-12-28 10:29:06 +0000
committersebastian.sjoholm <sebastian.sjoholm@gmail.com>2012-12-28 10:29:06 +0000
commit1136d42d405044101fa7633d3662b0dd359e2733 (patch)
tree54c9773a6f3cb33e692bf24f412aa82f676a52d0
parent77a41685bca36788905c346be586ee835ed2bd28 (diff)
downloaddrcontrol-1136d42d405044101fa7633d3662b0dd359e2733.zip
drcontrol-1136d42d405044101fa7633d3662b0dd359e2733.tar.gz
-rwxr-xr-xdrcontrol.py4
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():
OpenPOWER on IntegriCloud