mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 21:37:42 -02:30
Catch potential unicode errors when looking up addrinfo
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user