Make sure all except statements are no longer empty, should help a lot with debugging.

This commit is contained in:
Storm Dragon
2025-06-20 03:03:43 -04:00
parent 4e193f133f
commit a5ca1d28e8
42 changed files with 223 additions and 194 deletions

View File

@@ -31,7 +31,7 @@ class command():
self.checkForPrompt(currentLine)
except Exception as e:
# Silently ignore errors to avoid disrupting normal operation
pass
self.env['runtime']['debug'].writeDebugOut('prompt_detector run: Error in prompt detection: ' + str(e), debug.debugLevel.ERROR)
def checkForPrompt(self, text):
"""Check if the current line contains a shell prompt pattern"""
@@ -50,7 +50,7 @@ class command():
self.env['runtime']['debug'].writeDebugOut("Found exact prompt match: " + exactMatch, debug.debugLevel.INFO)
self._restoreSpeech()
return True
except:
except Exception as e:
# Prompt section doesn't exist in settings, skip custom exact matches
pass
@@ -62,7 +62,7 @@ class command():
if customPatterns:
customList = [pattern.strip() for pattern in customPatterns.split(',') if pattern.strip()]
promptPatterns.extend(customList)
except:
except Exception as e:
# Prompt section doesn't exist in settings, skip custom patterns
pass