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