mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-28 19:53:35 -05:00
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])
|
||||
except socket.gaierror:
|
||||
pass
|
||||
except UnicodeError:
|
||||
pass
|
||||
return matches
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user