From d37068b442d1e3b5ed6bdb2c7b6bf639a1056821 Mon Sep 17 00:00:00 2001 From: Tobi-wan Kenobi Date: Tue, 15 Nov 2016 20:35:35 +0100 Subject: [PATCH] [modules/cmus] Always initialize variables Initialize shuffle and repeat status variables even if cmus is not running at all. --- bumblebee/modules/cmus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee/modules/cmus.py b/bumblebee/modules/cmus.py index cf3f471..b847ad2 100644 --- a/bumblebee/modules/cmus.py +++ b/bumblebee/modules/cmus.py @@ -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]