diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-01-05 03:14:18 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-01-05 03:14:18 +0300 |
commit | 277e13bdd8b6a7d9c81e7f9f2a9d327dc7189821 (patch) | |
tree | e2d59a43887016d0c470fd03d8571c4cc96dfebc | |
parent | 09c82c319aa6145e7ae7e0bf52acfbfcefa9a568 (diff) |
Handle Exception when there is no KEY_Insert
This happens on MacOSX
-rw-r--r-- | src/chat_control_base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chat_control_base.py b/src/chat_control_base.py index 745c760ad..0dd5e1ef0 100644 --- a/src/chat_control_base.py +++ b/src/chat_control_base.py @@ -75,6 +75,9 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): keycode_ins = keymap.get_entries_for_keyval(Gdk.KEY_Insert)[1][0].keycode except TypeError: keycode_ins = 118 + except IndexError: + # There is no KEY_Insert (MacOS) + keycode_ins = None def make_href(self, match): url_color = gajim.config.get('urlmsgcolor') |