1
0
Fork 0

throwing a WindowsError with the code

Dieser Commit ist enthalten in:
Julian David Rath 2016-04-12 08:53:04 +02:00
Ursprung 7cbefa4317
Commit 6c01453fd3
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen

Datei anzeigen

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