1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-02-08 22:11:38 +00:00

Merge pull request #7 from julian-r/master

throwing a WindowsError with the code
This commit is contained in:
Virgil Dupras
2016-06-04 19:22:46 -04:00

View File

@@ -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)