summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-01-17 11:42:52 +0200
committerEitan Isaacson <eitan@monotonous.org>2011-01-17 11:44:51 +0200
commite03a94e9430943923fd7bc8812a70f2cab5267c6 (patch)
tree0115026e037f7343b395345c0a73ee710ff143a6
parentf3a9baddeb7300cd2fd9105cb66d7dd47eeda598 (diff)
downloadcaribou-e03a94e9430943923fd7bc8812a70f2cab5267c6.tar.gz
Raise an error when no keyboard is loaded.
-rw-r--r--caribou/ui/window.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/caribou/ui/window.py b/caribou/ui/window.py
index d6739f1..153a280 100644
--- a/caribou/ui/window.py
+++ b/caribou/ui/window.py
@@ -222,6 +222,8 @@ class CaribouWindow(Gtk.Window, Clutter.Animatable, ProximityWindowBase):
if os.path.exists(xml_path):
return xml_path
+ raise Exception("Could not load keyboard %s" % conf_file_path)
+
def show_all(self):
Gtk.Window.show_all(self)