fix to allow jobs to run in dev server again

This commit is contained in:
AlanCoding
2016-02-18 08:34:14 -05:00
parent bed6c666ae
commit 6bd5d8553b
2 changed files with 5 additions and 5 deletions
+4 -1
View File
@@ -133,7 +133,10 @@ class InventoryScript(object):
else:
sys.stderr.write('%s\n' % str(e))
if hasattr(e, 'response'):
sys.stderr.write('%s\n' % e.response.content)
if hasattr(e.response, 'content'):
sys.stderr.write('%s\n' % e.response.content)
else:
sys.stderr.write('%s\n' % e.response)
sys.exit(1)
def main():