Module: deluge
Branch: master
Commit: d800273891fa6bf085aa395ff678daf176bcb591

Author: John Garland <[email protected]>
Date:   Tue Jun  8 03:19:30 2010 +1000

Handle os.remove failing on windows

---

 deluge/ui/tracker_icons.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/tracker_icons.py b/deluge/ui/tracker_icons.py
index 1771110..298e21c 100644
--- a/deluge/ui/tracker_icons.py
+++ b/deluge/ui/tracker_icons.py
@@ -263,7 +263,10 @@ class TrackerIcons(Component):
                 break
         parser.close()
         f.close()
-        os.remove(page)
+        try:
+            os.remove(page)
+        except Exception, e:
+            log.warning("Couldn't remove temp file: %s", e)
         return parser.get_icons()
 
     def on_parse_complete(self, icons, host):

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to