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'): for vid in tree.iter('Video'):
try: try:
cdict['title'] = vid.attrib['title'] cdict['title'] = vid.attrib['title']
except: except AttributeError:
pass pass
for play in tree.iter('Player'): for play in tree.iter('Player'):
try: try:
cdict['platform'] = play.attrib['platform'] cdict['platform'] = play.attrib['platform']
except: except AttributeError:
player = '' pass
if not cdict['title'] or not cdict['platform']: if not cdict['title'] or not cdict['platform']:
self.output = {} if not self.format_no_streams else { self.output = {} if not self.format_no_streams else {