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

@ -11,7 +11,7 @@ initialized = False
try:
import enchant
initialized = True
except:
except Exception as e:
pass
class command():
@ -40,7 +40,7 @@ class command():
if self.env['runtime']['settingsManager'].getSetting('general', 'spellCheckLanguage') != self.language:
try:
self.updateSpellLanguage()
except:
except Exception as e:
return
# just when horizontal cursor move worddetection is needed
@ -111,17 +111,17 @@ class command():
try:
if os.path.exists("/bin/"+currWord):
return
except:
except Exception as e:
pass
try:
if os.path.exists("/usr/bin/"+currWord):
return
except:
except Exception as e:
pass
try:
if os.path.exists("/sbin/"+currWord):
return
except:
except Exception as e:
pass
if not self.spellChecker.check(currWord):