catch nonexisting command
This commit is contained in:
parent
633b90f1e8
commit
9b6eceeb87
@ -244,7 +244,10 @@ class commandManager():
|
||||
self.env['commandInfo']['lastCommandExecutionTime'] = time.time()
|
||||
|
||||
def commandExists(self, command, section = 'commands'):
|
||||
return( command in self.env['commands'][section])
|
||||
try:
|
||||
return( command in self.env['commands'][section])
|
||||
except:
|
||||
return False
|
||||
def getShortcutForCommand(self, command):
|
||||
shortcut = ''
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user