From 16435cfa15178bd8bcbc3d0c4e906ea5c4f399d8 Mon Sep 17 00:00:00 2001 From: sfop Date: Tue, 23 Aug 2016 14:16:10 +0200 Subject: [PATCH] Script execution --- script/camtool.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/camtool.py b/script/camtool.py index 71f6c1d..977cf90 100644 --- a/script/camtool.py +++ b/script/camtool.py @@ -98,9 +98,11 @@ class CamTool(DeviceBase): start = time.time() while(True): try: - caget(channel) + print "Reading" + print caget(channel) break - except: + except Exception as e: + print str(e) if time.time() - start > timeout: raise Exception("Timeout waiting for channel: " + channel) time.sleep(0.5)