web/views/__init__.py
branchstable
changeset 2230 45d670c00fe1
parent 2193 667b6340bfd4
child 2446 440cb4ea7e5c
--- a/web/views/__init__.py	Thu Jul 02 10:20:53 2009 +0200
+++ b/web/views/__init__.py	Thu Jul 02 10:21:00 2009 +0200
@@ -114,4 +114,7 @@
             self._generate(tmpfile)
             self.w(open(tmpfile).read())
         finally:
-            os.unlink(tmpfile)
+            try:
+                os.unlink(tmpfile)
+            except Exception, ex:
+                self.warning('cant delete %s: %s', tmpfile, ex)