mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-04-15 23:47:24 +02:00
Fixed RSE102 (unnecessary-paren-on-raise-exception): Unnecessary parentheses on raised exception
This commit is contained in:
committed by
Joshua Tauberer
parent
13b38cc04d
commit
51dc7615f7
@@ -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 { }
|
||||
|
||||
Reference in New Issue
Block a user