settings: close local settings file (#61977)

This commit is contained in:
Nicolas Roche 2022-02-18 17:25:41 +01:00
parent b7afb6ae54
commit 3b1c9c44d7
1 changed files with 2 additions and 1 deletions

View File

@ -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())