Fix errorneous recursive replace mishap
This commit is contained in:
parent
0743767385
commit
dec534ce81
@ -101,7 +101,7 @@ class Cmus(IntervalModule):
|
||||
|
||||
else:
|
||||
if hasattr(self, "data"):
|
||||
del.data
|
||||
del self.data
|
||||
self.output = {"full_text": self.format_not_running,
|
||||
"color": self.color_not_running}
|
||||
|
||||
|
@ -112,7 +112,7 @@ class KeyConstraintDict(collections.UserDict):
|
||||
|
||||
def __delitem__(self, key):
|
||||
self.seen_keys.remove(key)
|
||||
if hasattr(self, "data"): del self.data[key]
|
||||
del self.data[key]
|
||||
|
||||
def __iter__(self):
|
||||
"""Iteration will raise a MissingKeys exception unless all required keys are set
|
||||
|
@ -92,7 +92,7 @@ class MPD(IntervalModule):
|
||||
"full_text": ""
|
||||
}
|
||||
if hasattr(self, "data"):
|
||||
del.data
|
||||
del self.data
|
||||
return
|
||||
|
||||
fdict = {
|
||||
|
@ -127,8 +127,8 @@ class NowPlaying(IntervalModule):
|
||||
"full_text": self.format_no_player,
|
||||
"color": self.color_no_player,
|
||||
}
|
||||
if hasattr(self, "data"): if hasattr(self, "data"):
|
||||
del.data
|
||||
if hasattr(self, "data"):
|
||||
del self.data
|
||||
return
|
||||
|
||||
except dbus.exceptions.DBusException as e:
|
||||
@ -140,7 +140,7 @@ class NowPlaying(IntervalModule):
|
||||
"color": "#ff0000",
|
||||
}
|
||||
if hasattr(self, "data"):
|
||||
del.data
|
||||
del self.data
|
||||
return
|
||||
|
||||
def playpause(self):
|
||||
|
@ -96,7 +96,7 @@ class Spotify(IntervalModule):
|
||||
self.output = {"full_text": self.format_not_running,
|
||||
"color": self.color_not_running}
|
||||
if hasattr(self, "data"):
|
||||
del.data
|
||||
del self.data
|
||||
|
||||
def playpause(self):
|
||||
"""Pauses and plays spotify"""
|
||||
|
Loading…
Reference in New Issue
Block a user