summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-04-15 18:05:47 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-04-15 18:05:47 (GMT)
commit824ae0105eacb0247e33ce29cebd65c1134786c7 (patch)
treebd15ae7521064848af5d9300bd23aa3770146f88 /abs/core
parentee01e37d0775a4720f2a6d0e093507bef1c3f266 (diff)
downloadlinhes_pkgbuild-824ae0105eacb0247e33ce29cebd65c1134786c7.zip
linhes_pkgbuild-824ae0105eacb0247e33ce29cebd65c1134786c7.tar.gz
linhes_pkgbuild-824ae0105eacb0247e33ce29cebd65c1134786c7.tar.bz2
linhes-system: myth_status.py, handle case where conflicts is null and catch the excpetion
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/LinHES-system/myth_status.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/abs/core/LinHES-system/myth_status.py b/abs/core/LinHES-system/myth_status.py
index f8222cb..ed5058c 100644
--- a/abs/core/LinHES-system/myth_status.py
+++ b/abs/core/LinHES-system/myth_status.py
@@ -90,12 +90,15 @@ print ""
print "Conflicted Recordings:"
print "----------------------"
a=be.getConflictedRecordings()
-if len(a) == 0:
+try:
+ if len(a) == 0:
+ print " No conflicts"
+ else:
+ for i in a:
+ title_chan="%s (%s)" %(i.title, i.channame)
+ print " %s - %-50s " %(i.starttime,title_chan)
+except:
print " No conflicts"
-else:
- for i in a:
- title_chan="%s (%s)" %(i.title, i.channame)
- print " %s - %-50s " %(i.starttime,title_chan)
print ""
print ""