From c714ae7ef2b1b59cf9e302351fb63e1c2170e700 Mon Sep 17 00:00:00 2001 From: David Wahlstrom Date: Sat, 17 Oct 2015 08:22:51 -0700 Subject: [PATCH] plexstatus: cleanup catchall except Cleanup a bare try/except that is supposed to be catching just an attribute error. --- i3pystatus/plexstatus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i3pystatus/plexstatus.py b/i3pystatus/plexstatus.py index 4c921dc..f2f10a8 100644 --- a/i3pystatus/plexstatus.py +++ b/i3pystatus/plexstatus.py @@ -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 {