Skip to content

Commit

Permalink
fix bug when ephios is not installed as a package when developing
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Aug 2, 2023
1 parent b6420e2 commit eb67e44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ephios/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
DEBUG = env.bool("DEBUG")
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS")

EPHIOS_VERSION = importlib_metadata.version("ephios")
try:
EPHIOS_VERSION = importlib_metadata.version("ephios")
except importlib_metadata.PackageNotFoundError:
# ephios is not installed as a package (e.g. development setup)
pass

if not DEBUG:
SESSION_COOKIE_SECURE = True
Expand Down

0 comments on commit eb67e44

Please sign in to comment.