mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-05-08 09:49:52 +00:00
Merge pull request #7 from julian-r/master
throwing a WindowsError with the code
This commit is contained in:
commit
0974912e78
@ -54,6 +54,4 @@ def send2trash(path):
|
|||||||
fileop.lpszProgressTitle = None
|
fileop.lpszProgressTitle = None
|
||||||
result = SHFileOperationW(byref(fileop))
|
result = SHFileOperationW(byref(fileop))
|
||||||
if result:
|
if result:
|
||||||
msg = "Couldn't perform operation. Error code: %d" % result
|
raise WindowsError(None, None, path, result)
|
||||||
raise OSError(msg)
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user