From be273d7037501267f6cde521b7792b39f61a7d5b Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 13 Dec 2018 16:19:46 +0100 Subject: [PATCH 2/2] pep8ness --- src/authentic2/manager/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/manager/forms.py b/src/authentic2/manager/forms.py index f42a0511..7a39afde 100644 --- a/src/authentic2/manager/forms.py +++ b/src/authentic2/manager/forms.py @@ -376,7 +376,7 @@ class UserAddForm(UserChangePasswordForm, UserEditForm): context={ 'user': user, }) - except smtplib.SMTPException, e: + except smtplib.SMTPException as e: logger.error(u'registration mail could not be sent to user %s created through ' u'manager: %s', user, e) return user -- 2.18.0