From 9219f0f682385c4876d2ae912a07b4b5314868d6 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 27 Sep 2017 20:14:28 -0400 Subject: [PATCH] Catch potential unicode errors when looking up addrinfo --- awx/api/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/api/views.py b/awx/api/views.py index 7015523b2b..e07b7f8b96 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -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):