From ff86624c3e1e044c0876ca293b202c3934688db4 Mon Sep 17 00:00:00 2001 From: hsoft Date: Thu, 1 Oct 2009 11:13:58 +0000 Subject: [PATCH] [#62 state:fixed] Wrapped winshell exception. --HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40164 --- base/qt/platform_win.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)