Commit d94b7c09 authored by Anwar_N's avatar Anwar_N
Browse files

handle keyerror exception

parent 680598b3
......@@ -269,7 +269,10 @@ class EngineSharadaBraille(IBus.Engine):
t.start()
return False
value = self.map[ordered_pressed_keys][self.braille_letter_map_pos]
try:
value = self.map[ordered_pressed_keys][self.braille_letter_map_pos]
except:
value = "";
if (self.capital_switch == 1 or self.capital == 1):
value = value.upper()
self.capital_switch = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment