Commit 8bd828be authored by Enrico Zini's avatar Enrico Zini
Browse files

Use the right exception to catch local_settings not existing

parent 05671f24
......@@ -188,7 +188,7 @@ IMPERSONATE_TEST_FIXTURE = "dc.unittest.ImpersonateFixtureMixin"
# fine, use defaults from this file
try:
from dc.local_settings import * # noqa
except Exception:
except ModuleNotFoundError:
pass
# Log to file on top of the normal django logging
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment