throwing a WindowsError with the code
这个提交包含在:
父节点
7cbefa4317
当前提交
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)
|
||||
|
|
正在加载...
在新工单中引用