catch nonexisting command

This commit is contained in:
chrys 2019-02-13 00:17:21 +01:00
parent 633b90f1e8
commit 9b6eceeb87

View File

@ -244,7 +244,10 @@ class commandManager():
self.env['commandInfo']['lastCommandExecutionTime'] = time.time()
def commandExists(self, command, section = 'commands'):
try:
return( command in self.env['commands'][section])
except:
return False
def getShortcutForCommand(self, command):
shortcut = ''
try: