throwing a WindowsError with the code

This commit is contained in:
Julian David Rath 2016-04-12 08:53:04 +02:00
父節點 7cbefa4317
當前提交 6c01453fd3
共有 1 個文件被更改,包括 1 次插入3 次删除

查看文件

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