diff --git a/bumblebee/modules/gpmdp.py b/bumblebee/modules/gpmdp.py index af96e9b..57f3c1a 100644 --- a/bumblebee/modules/gpmdp.py +++ b/bumblebee/modules/gpmdp.py @@ -31,7 +31,7 @@ class Module(bumblebee.engine.Module): self._tags = None def description(self, widget): - return self._tags + return self._tags if self._tags else "n/a" def update(self, widgets): self._load_song() diff --git a/tests/modules/test_modules.py b/tests/modules/test_modules.py index 4c54a93..59db4fa 100644 --- a/tests/modules/test_modules.py +++ b/tests/modules/test_modules.py @@ -39,7 +39,7 @@ class TestGenericModules(unittest.TestCase): assertWidgetAttributes(self, widget) widget.set("variable", "value") self.assertEquals(widget.get("variable", None), "value") - self.assertTrue(isinstance(widget.full_text(), str)) + self.assertTrue(isinstance(widget.full_text(), str) or isinstance(widget.full_text(), unicode)) @mock.patch("subprocess.Popen") def test_update(self, mock_output):