mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
clean up unnecessary usage of the six library (awx only supports py3)
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
import urllib.parse
|
||||
|
||||
# Six
|
||||
import six
|
||||
|
||||
# Django
|
||||
from django.conf import settings
|
||||
@@ -83,7 +82,7 @@ class SocialAuthMiddleware(SocialAuthExceptionMiddleware):
|
||||
return redirect(url)
|
||||
|
||||
def get_message(self, request, exception):
|
||||
msg = six.text_type(exception)
|
||||
msg = str(exception)
|
||||
if msg and msg[-1] not in '.?!':
|
||||
msg = msg + '.'
|
||||
return msg
|
||||
|
||||
Reference in New Issue
Block a user