diff --git a/base/qt/platform_win.py b/base/qt/platform_win.py index 960cbfb7..f1a777ae 100644 --- a/base/qt/platform_win.py +++ b/base/qt/platform_win.py @@ -8,7 +8,14 @@ # which should be included with this package. The terms are also available at # http://www.hardcoded.net/licenses/hs_license +from __future__ import unicode_literals + +import logging + import winshell def recycle_file(path): - winshell.delete_file(unicode(path), no_confirm=True) + try: + winshell.delete_file(unicode(path), no_confirm=True, silent=True) + except winshell.x_winshell as e: + logging.warning("winshell error: %s", e)