mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	python: Catch BaseException when we need to clean something up.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							7f69c1d3d5
						
					
				
				
					commit
					b7a94be152
				
			@@ -53,7 +53,7 @@ def overwrite_symlink(src: str, dst: str) -> None:
 | 
			
		||||
        break
 | 
			
		||||
    try:
 | 
			
		||||
        os.rename(tmp, dst)
 | 
			
		||||
    except Exception:
 | 
			
		||||
    except BaseException:
 | 
			
		||||
        os.remove(tmp)
 | 
			
		||||
        raise
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user