From 56b2981379271a755e34069f8b9a6a654e8777b6 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 18 Nov 2017 14:59:30 +0100 Subject: [PATCH] [core/themes] Fix exception on missing theme If no theme is found, raise an exception. see #203 --- bumblebee/theme.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee/theme.py b/bumblebee/theme.py index ff4ab00..41f2e32 100644 --- a/bumblebee/theme.py +++ b/bumblebee/theme.py @@ -148,6 +148,8 @@ class Theme(object): except ValueError as exception: raise bumblebee.error.ThemeLoadError("JSON error: {}".format(exception)) + if not result: + raise bumblebee.error.ThemeLoadError("no such theme") return result def _get(self, widget, name, default=None):