plexstatus: cleanup catchall except

Cleanup a bare try/except that is supposed to be catching just an
attribute error.
This commit is contained in:
David Wahlstrom 2015-10-17 08:22:51 -07:00
parent a6c88c9890
commit c714ae7ef2

View File

@ -41,14 +41,14 @@ class Plexstatus(IntervalModule):
for vid in tree.iter('Video'):
try:
cdict['title'] = vid.attrib['title']
except:
except AttributeError:
pass
for play in tree.iter('Player'):
try:
cdict['platform'] = play.attrib['platform']
except:
player = ''
except AttributeError:
pass
if not cdict['title'] or not cdict['platform']:
self.output = {} if not self.format_no_streams else {