mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	Added check of world.testing so nasty exceptions aren't printed during testing.
This commit is contained in:
		
							parent
							
								
									6f7a33ce5c
								
							
						
					
					
						commit
						822a12535b
					
				| @ -40,6 +40,7 @@ import traceback | ||||
| 
 | ||||
| import ansi | ||||
| import conf | ||||
| import world | ||||
| 
 | ||||
| ### | ||||
| # CONFIGURATION | ||||
| @ -130,6 +131,8 @@ def unrecoverableError(msg): | ||||
|     exit(-1) | ||||
| 
 | ||||
| def recoverableException(): | ||||
|     if world.testing: | ||||
|         return | ||||
|     (E, e, tb) = sys.exc_info() | ||||
|     for exn in deadlyExceptions: | ||||
|         if issubclass(e.__class__, exn): | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeremy Fincher
						Jeremy Fincher