Commits

xiaq committed 0f09328

Fix broken AnyWikiDraw.

Comments (0)

Files changed (1)

MoinMoin/items/__init__.py

         @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}