Browse Source

throwing a WindowsError with the code

tags/1.3.1
Julian David Rath 5 years ago
parent
commit
6c01453fd3
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      send2trash/plat_win.py

+ 1
- 3
send2trash/plat_win.py 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)

Loading…
Cancel
Save