mirror of
				https://github.com/arsenetar/send2trash.git
				synced 2025-09-11 18:08:16 +00:00 
			
		
		
		
	throwing a WindowsError with the code
This commit is contained in:
		
							parent
							
								
									7cbefa4317
								
							
						
					
					
						commit
						6c01453fd3
					
				| @ -54,6 +54,4 @@ def send2trash(path): | ||||
|     fileop.lpszProgressTitle = None | ||||
|     result = SHFileOperationW(byref(fileop)) | ||||
|     if result: | ||||
|         msg = "Couldn't perform operation. Error code: %d" % result | ||||
|         raise OSError(msg) | ||||
| 
 | ||||
|         raise WindowsError(None, None, path, result) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user