Merge pull request #7 from julian-r/master

throwing a WindowsError with the code
pull/11/head
Virgil Dupras 7 years ago
commit 0974912e78

@ -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…
Cancel
Save