settings: close local settings file (#61977)
This commit is contained in:
parent
b7afb6ae54
commit
3b1c9c44d7
|
@ -265,4 +265,5 @@ local_settings_file = os.environ.get(
|
|||
)
|
||||
|
||||
if os.path.exists(local_settings_file):
|
||||
exec(open(local_settings_file).read())
|
||||
with open(local_settings_file) as f:
|
||||
exec(f.read())
|
||||
|
|
Loading…
Reference in New Issue