[modules/cmus] Always initialize variables

Initialize shuffle and repeat status variables even if cmus is not
running at all.
This commit is contained in:
Tobi-wan Kenobi 2016-11-15 20:35:35 +01:00
parent 36d723e7e6
commit d37068b442

View file

@ -34,6 +34,8 @@ class Module(bumblebee.module.Module):
def _tags(self):
tags = defaultdict(lambda: '')
self._repeat = False
self._shuffle = False
for line in self._query:
if line.startswith("status"):
status = line.split(" ", 2)[1]