We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa7bc3 commit 07a817cCopy full SHA for 07a817c
1 file changed
bpython/config.py
@@ -120,11 +120,15 @@ def loadini(struct, configfile):
120
def get_key_no_doublebind(command):
121
default_commands_to_keys = defaults['keyboard']
122
requested_key = config.get('keyboard', command)
123
- default_command = default_keys_to_commands[requested_key]
124
125
- if default_commands_to_keys[default_command] == \
126
- config.get('keyboard', default_command):
127
- setattr(struct, '%s_key' % default_command, '')
+ try:
+ default_command = default_keys_to_commands[requested_key]
+
+ if default_commands_to_keys[default_command] == \
128
+ config.get('keyboard', default_command):
129
+ setattr(struct, '%s_key' % default_command, '')
130
+ except KeyError:
131
+ pass
132
133
return requested_key
134
0 commit comments