fix to allow jobs to run in dev server again

This commit is contained in:
AlanCoding
2016-02-16 08:29:05 -05:00
parent bed6c666ae
commit 6bd5d8553b
2 changed files with 5 additions and 5 deletions

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():