diff --git a/src/fenrirscreenreader/core/commandManager.py b/src/fenrirscreenreader/core/commandManager.py index b754534d..9615acde 100644 --- a/src/fenrirscreenreader/core/commandManager.py +++ b/src/fenrirscreenreader/core/commandManager.py @@ -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: