warn() has a flag to print exception stack traces now
							parent
							
								
									a38e38f96e
								
							
						
					
					
						commit
						4f844b6480
					
				
							
								
								
									
										5
									
								
								main.py
								
								
								
								
							
							
						
						
									
										5
									
								
								main.py
								
								
								
								
							|  | @ -10,8 +10,11 @@ import sys, os, json, traceback | |||
| EXIT_SUCCESS=0 | ||||
| EXIT_ERROR=1 | ||||
| 
 | ||||
| def warn(message): | ||||
| def warn(message, is_exception=False): | ||||
|     print("WARNING: "+str(message), file=sys.stderr) | ||||
|     if is_exception: | ||||
|         traceback.print_exc() | ||||
|     else: | ||||
|         traceback.print_stack() | ||||
| 
 | ||||
| def error(message, is_exception=True, handle_gracefully=True): | ||||
|  |  | |||
		Reference in New Issue
	
	 BodgeMaster
						BodgeMaster