diff --git a/fet2020/authentications/authentications.py b/fet2020/authentications/authentications.py index 4d01d570..8d469d6a 100644 --- a/fet2020/authentications/authentications.py +++ b/fet2020/authentications/authentications.py @@ -28,6 +28,9 @@ def authentication(username, password): except LDAPBindError as e: logger.info('Username does not exist. Error: {}'.format(e)) username = None + except Exception as e: + logger.info('Connection to server lost. Error: {}'.format(e)) + username = None if not has_user: username = None