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:
parent
feb0cd5e7c
commit
9219f0f682
@ -3089,6 +3089,8 @@ class JobTemplateCallback(GenericAPIView):
|
|||||||
matches.update(host_mappings[host_name])
|
matches.update(host_mappings[host_name])
|
||||||
except socket.gaierror:
|
except socket.gaierror:
|
||||||
pass
|
pass
|
||||||
|
except UnicodeError:
|
||||||
|
pass
|
||||||
return matches
|
return matches
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user