print the error onto stdout, too

This commit is contained in:
MaZderMind 2014-07-23 23:26:12 +02:00
parent f2e32764c0
commit 3f057cc5d4

View file

@ -58,7 +58,9 @@ while True:
generatePreroll(ticket) generatePreroll(ticket)
rpc.setTicketDone(str(ticket_id), url, token, host, secret) rpc.setTicketDone(str(ticket_id), url, token, host, secret)
except: except:
rpc.setTicketFailed(str(ticket_id), str(traceback.format_exc()), url, token, host, secret) error = str(traceback.format_exc())
print(error)
rpc.setTicketFailed(str(ticket_id), error, url, token, host, secret)
else: else:
print('No ticket found') print('No ticket found')