Fixed RSE102 (unnecessary-paren-on-raise-exception): Unnecessary parentheses on raised exception

This commit is contained in:
Teal Dulcet
2024-03-10 07:54:51 -04:00
committed by Joshua Tauberer
parent 13b38cc04d
commit 51dc7615f7
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ def load_settings(env):
try:
with open(fn) as f:
config = rtyaml.load(f)
if not isinstance(config, dict): raise ValueError() # caught below
if not isinstance(config, dict): raise ValueError # caught below
return config
except:
return { }