don't use bare except

use "except Exception", or if really needed explicitly "except BaseException"
This commit is contained in:
SomberNight
2023-04-23 01:33:12 +00:00
parent 6848b8f375
commit 312f2641e7
57 changed files with 118 additions and 118 deletions

View File

@@ -47,7 +47,7 @@ class RevealerPlugin(BasePlugin):
return None
try:
int(txt, 16)
except:
except Exception:
return None
version = txt[0]
if version not in cls.KNOWN_VERSIONS: