Update more urls

This commit is contained in:
Jeff Bradberry
2019-04-11 14:46:13 -04:00
parent 10cfac2f0e
commit 11b85250e8
3 changed files with 6 additions and 3 deletions

View File

@@ -1655,7 +1655,8 @@ class HostInsights(GenericAPIView):
return res.json()
except ValueError:
raise BadGateway(
_('Expected JSON response from Insights but instead got {}').format(res.content))
_('Expected JSON response from Insights at URL {}'
' but instead got {}').format(url, res.content))
def _get_session(self, username, password):
session = requests.Session()