diff options
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/mapping.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/helpers/mapping.py b/helpers/mapping.py index 0c81af4..d60e709 100644 --- a/helpers/mapping.py +++ b/helpers/mapping.py | |||
@@ -23,7 +23,13 @@ class Mapping(RelativeLayout): | |||
23 | self.mixer = Mixer() | 23 | self.mixer = Mixer() |
24 | else: | 24 | else: |
25 | self.mixer = None | 25 | self.mixer = None |
26 | self.key_config, self.open_files = self.parse_config() | 26 | |
27 | try: | ||
28 | self.key_config, self.open_files = self.parse_config() | ||
29 | except Exception as e: | ||
30 | error_print("Error while loading configuration: {}".format(e)) | ||
31 | sys.exit() | ||
32 | |||
27 | super(Mapping, self).__init__(**kwargs) | 33 | super(Mapping, self).__init__(**kwargs) |
28 | self._keyboard = Window.request_keyboard(self._keyboard_closed, self) | 34 | self._keyboard = Window.request_keyboard(self._keyboard_closed, self) |
29 | self._keyboard.bind(on_key_down=self._on_keyboard_down) | 35 | self._keyboard.bind(on_key_down=self._on_keyboard_down) |