1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Catch potential unicode errors when looking up addrinfo

This commit is contained in:
Matthew Jones 2017-09-27 20:14:28 -04:00
parent feb0cd5e7c
commit 9219f0f682
No known key found for this signature in database
GPG Key ID: 76A4C17A97590C1C

View File

@ -3089,6 +3089,8 @@ class JobTemplateCallback(GenericAPIView):
matches.update(host_mappings[host_name])
except socket.gaierror:
pass
except UnicodeError:
pass
return matches
def get(self, request, *args, **kwargs):