Skip to content

Commit

Permalink
mpd_status module: fix UnboundLocalError (#2199)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbusse authored Jun 18, 2023
1 parent d55c3e0 commit 3bb3306
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py3status/modules/mpd_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ def attr_getter(attr):
text = "Failed to authenticate to mpd!"
self._get_mpd(disconnect=True)

state = None
self.current_status = (text, status)
self.current_status = (text, None)
return
finally:
self.py3.update() # to propagate error message
Expand Down

0 comments on commit 3bb3306

Please sign in to comment.