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])
|
||||
except socket.gaierror:
|
||||
pass
|
||||
except UnicodeError:
|
||||
pass
|
||||
return matches
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user