settings: close local settings file (#61978)

This commit is contained in:
Nicolas Roche 2022-02-18 17:31:35 +01:00
parent 0e4aa8e784
commit d954071784
1 changed files with 2 additions and 1 deletions

View File

@ -242,4 +242,5 @@ EXTRA_SENDERS = False
local_settings_file = os.environ.get('DOCBOW_SETTINGS_FILE', 'local_settings.py')
if os.path.exists(local_settings_file):
exec(open(local_settings_file).read())
with open(local_settings_file) as f:
exec(f.read())