Fix formatting

This commit is contained in:
Georg Krause 2022-09-13 11:38:09 +02:00
parent d147e222a4
commit 8b0b2063ef
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ def verify_date(raw_date):
delta = datetime.timedelta(seconds=DATE_HEADER_VALID_FOR)
now = timezone.now()
if dt < now - delta or dt > now + delta:
logger.error(f"Request Date {raw_date} is too too far in the future or in the past")
logger.error(
f"Request Date {raw_date} is too too far in the future or in the past"
)
raise forms.ValidationError(
"Request Date is too far in the future or in the past"
)