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 f438b16 commit 9c2997a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion maintenance_mode/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def set_maintenance_mode(value):
# If maintenance mode is defined in settings, it can't be changed.
if settings.MAINTENANCE_MODE is not None:
raise ImproperlyConfigured(
"Maintenance mode cannot be set dynamically " "if defined in settings."
"Maintenance mode cannot be set dynamically if defined in settings."
)

if not isinstance(value, bool):
Expand Down
3 changes: 1 addition & 2 deletions maintenance_mode/management/commands/maintenance_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
class Command(BaseCommand):
args = "<on|off>"
help = (
f"run python manage.py maintenance_mode {args} "
"to change maintenance-mode state"
f"run python manage.py maintenance_mode {args} to change maintenance-mode state"
)

def add_arguments(self, parser):
Expand Down

0 comments on commit 9c2997a

Please sign in to comment.