changeset 1124:0719653ce4fb

Do not break on plugin exceptions in Page
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Thu, 03 Aug 2006 21:35:34 +0200
parents 47df631cdc05
children 0f5d10f9b31b fd05b2dc86a4
files MoinMoin/Page.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Thu Aug 03 18:22:12 2006 +0200
+++ b/MoinMoin/Page.py	Thu Aug 03 21:35:34 2006 +0200
@@ -1360,14 +1360,14 @@
             try:
                 code = self.loadCache(request)
                 self.execute(request, parser, code)
-            except Exception, (msg, ):
-                if msg != 'CacheNeedsUpdate':
+            except Exception, e:
+                if getattr(e, "message", None) != 'CacheNeedsUpdate':
                     raise
                 try:
                     code = self.makeCache(request, parser)
                     self.execute(request, parser, code)
-                except Exception, (msg, ):
-                    if msg != 'CacheNeedsUpdate':
+                except Exception, e:
+                    if getattr(e, "message", None) != 'CacheNeedsUpdate':
                         raise
                     request.log('page cache failed after creation')
                     self.format(parser)