Skip to content

Commit 75118c9

Browse files
Sonia ParkSonia Park
authored andcommitted
fix: pylint fix
1 parent a8da009 commit 75118c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

desktop/core/src/desktop/auth/backend.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
User to remain a django.contrib.auth.models.User object.
2929
"""
3030

31-
import sys
3231
import logging
3332
from builtins import object
3433
from importlib import import_module
@@ -69,8 +68,6 @@
6968
LOG.warning('django_auth_ldap module not found')
7069
class LDAPSearch:
7170
pass
72-
class LDAPSearch:
73-
pass
7471

7572
try:
7673
from mozilla_django_oidc.auth import OIDCAuthenticationBackend, default_username_algo
@@ -496,7 +493,7 @@ def get_or_create_user(self, username, ldap_user):
496493
return User.objects.get_or_create(username=username)
497494
else:
498495
return User.objects.get_or_create(username=username)
499-
except ValidationError as e:
496+
except ValidationError:
500497
LOG.exception("LDAP username is invalid: %s" % username)
501498

502499
self._backend = _LDAPBackend()

0 commit comments

Comments
 (0)