print the error onto stdout, too
This commit is contained in:
		
							parent
							
								
									f2e32764c0
								
							
						
					
					
						commit
						3f057cc5d4
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -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')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue