Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 22006a9 commit 152d7e9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions freeze/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@

if not settings.FREEZE_MEDIA_ROOT:
raise ImproperlyConfigured(
"settings.FREEZE_MEDIA_ROOT can't be None, "
"please configure settings.MEDIA_ROOT"
"settings.FREEZE_MEDIA_ROOT can't be None, please configure settings.MEDIA_ROOT"
)

if not hasattr(settings, "FREEZE_MEDIA_URL"):
settings.FREEZE_MEDIA_URL = getattr(settings, "MEDIA_URL", None)

if not settings.FREEZE_MEDIA_URL:
raise ImproperlyConfigured(
"settings.FREEZE_MEDIA_URL can't be None, "
"please configure settings.MEDIA_URL"
"settings.FREEZE_MEDIA_URL can't be None, please configure settings.MEDIA_URL"
)

if not hasattr(settings, "FREEZE_STATIC_ROOT"):
Expand All @@ -56,8 +54,7 @@

if not settings.FREEZE_STATIC_URL:
raise ImproperlyConfigured(
"settings.FREEZE_STATIC_URL can't be None, "
"please configure settings.STATIC_URL"
"settings.FREEZE_STATIC_URL can't be None, please configure settings.STATIC_URL"
)

if not hasattr(settings, "FREEZE_USE_HTTPS"):
Expand Down

0 comments on commit 152d7e9

Please sign in to comment.