diff MoinMoin/caching.py @ 2841:93be75db2051

handle out-of-space errors in PageEditor and caching, avoid 'current' corruption (thanks to TheAnarcat)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 19 Sep 2007 21:39:48 +0200
parents 529a3c5e6d0e
children ea5383222f2f
line wrap: on
line diff
--- a/MoinMoin/caching.py	Wed Sep 19 01:26:22 2007 +0200
+++ b/MoinMoin/caching.py	Wed Sep 19 21:39:48 2007 +0200
@@ -145,7 +145,7 @@
                         self.wlock.release()
             else:
                 self.request.log("Can't acquire write lock in %s" % self.lock_dir)
-        except (pickle.PicklingError, IOError, ValueError), err:
+        except (pickle.PicklingError, OSError, IOError, ValueError), err:
             raise CacheError(str(err))
 
     def remove(self):