diff options
author | Britney Fransen <brfransen@gmail.com> | 2012-08-28 15:29:36 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2012-08-28 15:29:36 (GMT) |
commit | 9bd1414fc727d98697851105ccb4e9061707b3af (patch) | |
tree | 304e7288664b6dd5b2074d2e466100676bf7ac90 /abs/core/LinHES-system/myth_status.py | |
parent | 10e0cb3feaadc801927c021b62aba6dd5961d68b (diff) | |
download | linhes_pkgbuild-9bd1414fc727d98697851105ccb4e9061707b3af.zip linhes_pkgbuild-9bd1414fc727d98697851105ccb4e9061707b3af.tar.gz linhes_pkgbuild-9bd1414fc727d98697851105ccb4e9061707b3af.tar.bz2 |
LinHES-system: update myth_status.py to work with tuners in error. closes #843
Diffstat (limited to 'abs/core/LinHES-system/myth_status.py')
-rw-r--r-- | abs/core/LinHES-system/myth_status.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/abs/core/LinHES-system/myth_status.py b/abs/core/LinHES-system/myth_status.py index 4637b90..b4f4375 100644 --- a/abs/core/LinHES-system/myth_status.py +++ b/abs/core/LinHES-system/myth_status.py @@ -60,13 +60,15 @@ for i in a: type = results[0][0] hostname = results[0][1] id = i - c=be.getCurrentRecording(i) - if c.title == None: - current_recording = "Idle" - else: - current_recording = "Recording %s" %c.title - print " Tuner %s (%s) on %s : %s " %(id, type, hostname, current_recording) - + try: + c=be.getCurrentRecording(i) + if c.title == None: + current_recording = "Idle" + else: + current_recording = "Recording %s" %c.title + print " Tuner %s (%s) on %s : %s " %(id, type, hostname, current_recording) + except: + print " Tuner %s (%s) on %s : %s " %(id, type, hostname, "Tuner Error") print "" print "Upcoming Recordings (Next %s scheduled):" %(num_upcoming) |