events: fix lint

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-02-14 23:15:45 +01:00
parent 0973c74b9d
commit 72259f6479
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,5 @@
"""events GeoIP Reader""" """events GeoIP Reader"""
from datetime import datetime
from os import stat from os import stat
from time import time
from typing import Optional, TypedDict from typing import Optional, TypedDict
from geoip2.database import Reader from geoip2.database import Reader

View File

@ -155,7 +155,7 @@ class OAuthAuthorizationParams:
"""Redirect URI validation.""" """Redirect URI validation."""
allowed_redirect_urls = self.provider.redirect_uris.split() allowed_redirect_urls = self.provider.redirect_uris.split()
# We don't want to actually lowercase the final URL we redirect to, # We don't want to actually lowercase the final URL we redirect to,
# we only lowercase it for comparsion # we only lowercase it for comparison
redirect_uri = self.redirect_uri.lower() redirect_uri = self.redirect_uri.lower()
if not redirect_uri: if not redirect_uri:
LOGGER.warning("Missing redirect uri.") LOGGER.warning("Missing redirect uri.")