Add FIXME for cmd parsing IndexError

This commit is contained in:
Florian Bruhin 2014-01-20 08:58:56 +01:00
parent a18f3f5aa5
commit 8d8cc25344

View File

@ -48,6 +48,7 @@ class KeyParser(QObject):
cmd = self.key_to_cmd[cmdstr]
except KeyError:
pos = len(cmdstr)
# FIXME we get an IndexError here sometimes (e.g. with 'go')
if any([cmdstr[-1] == needle[pos-1]
for needle in self.key_to_cmd]):
logging.debug('No match for "{}" (added {})'.format(