Skip to content

Commit

Permalink
Merge pull request #11 from joeribekker/patch-1
Browse files Browse the repository at this point in the history
Added check if maintenance_until is not null
  • Loading branch information
JostCrow committed May 29, 2018
2 parents 61e286b + 760fcb5 commit e2d00cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def handle(self, *args, **options):
now = timezone.now()

if config.maintenance:
if config.maintenance_until < now:
if config.maintenance_until and config.maintenance_until < now:
config.maintenance = False
config.maintenance_until = None
config.save()
Expand Down

0 comments on commit e2d00cc

Please sign in to comment.