changeset 1393:0f0932809e1e

Fix broken AnyWikiDraw.
author Cheer Xiao <xiaqqaix@gmail.com>
date Sun, 24 Jun 2012 11:34:37 +0800
parents 7a2ee6335ea9
children d568defb6845
files MoinMoin/items/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Fri Jun 15 17:50:30 2012 +0800
+++ b/MoinMoin/items/__init__.py	Sun Jun 24 11:34:37 2012 +0800
@@ -1398,8 +1398,8 @@
         @property
         def extra_template_args(self):
             try:
-                drawing_exists = 'drawing.svg' in item.list_members()
-            except:
+                drawing_exists = 'drawing.svg' in self.item.list_members()
+            except tarfile.TarError: # item doesn't exist yet
                 drawing_exists = False
             return {'drawing_exists': drawing_exists}