This commit is contained in:
Benjamin Dauvergne 2018-12-13 16:19:46 +01:00
parent 506de394f9
commit 205b994d91
1 changed files with 1 additions and 1 deletions

View File

@ -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