diff options
author | Britney Fransen <brfransen@gmail.com> | 2012-09-22 04:09:21 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2012-09-22 04:09:21 (GMT) |
commit | 02ed2d32465e5f074eae2bca648c2b344c7a3044 (patch) | |
tree | 6167d79c5e9d3dced9a0c48cd49ab4740d8170fe /abs/core/LinHES-system/myth_status.py | |
parent | 0654c2001674e4e532bee4d4fd14c67cd7100869 (diff) | |
download | linhes_pkgbuild-02ed2d32465e5f074eae2bca648c2b344c7a3044.zip linhes_pkgbuild-02ed2d32465e5f074eae2bca648c2b344c7a3044.tar.gz linhes_pkgbuild-02ed2d32465e5f074eae2bca648c2b344c7a3044.tar.bz2 |
LinHES-system: myth_status.py: fix conflicted recordings
conflicted recordings would always trigger the except because len of an list iterator fails
Diffstat (limited to 'abs/core/LinHES-system/myth_status.py')
-rw-r--r-- | abs/core/LinHES-system/myth_status.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/abs/core/LinHES-system/myth_status.py b/abs/core/LinHES-system/myth_status.py index b4f4375..da43679 100644 --- a/abs/core/LinHES-system/myth_status.py +++ b/abs/core/LinHES-system/myth_status.py @@ -92,14 +92,13 @@ print "" print "Conflicted Recordings:" print "----------------------" a=be.getConflictedRecordings() -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: +c=0 +for i in a: + title_chan="%s (%s)" %(i.title, i.channame) + print " %s - %-50s " %(i.starttime,title_chan) + c=c+1 + +if c == 0: print " No conflicts" print "" |