mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 01:27:21 +01:00 
			
		
		
		
	Fix a bug with adding __revision__ info to Exception
This commit is contained in:
		
							parent
							
								
									c4b2d53468
								
							
						
					
					
						commit
						48d312bab7
					
				@ -213,8 +213,11 @@ if not hasattr(Exception, '_original__init__'):
 | 
			
		||||
        self._original__init__(*args, **kwargs)
 | 
			
		||||
    Exception.__init__ = __init__
 | 
			
		||||
 | 
			
		||||
import atexit
 | 
			
		||||
def _replace_original__init__():
 | 
			
		||||
    Exception.__init__ = Exception._original__init__
 | 
			
		||||
atexit.register(_replace_original__init__)g = globals()
 | 
			
		||||
 | 
			
		||||
g = globals()
 | 
			
		||||
for name in exported:
 | 
			
		||||
    __builtins__[name] = g[name]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user