From: sasilver Date: Sun, 21 Sep 2008 15:10:19 +0000 (+0000) Subject: Fix for GIMP palette export: check that the node has a hasAttributes() method before... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df4ba55f39ab5b5ec4a7a196050b45dc7a697896;p=inkscape.git Fix for GIMP palette export: check that the node has a hasAttributes() method before calling it, otherwise it throws an exception. --- diff --git a/share/extensions/export_gimp_palette.py b/share/extensions/export_gimp_palette.py index 51b9a950d..f1b4086c0 100644 --- a/share/extensions/export_gimp_palette.py +++ b/share/extensions/export_gimp_palette.py @@ -24,7 +24,7 @@ def walk(node): walk(child) def checkStyle(node): - if node.hasAttributes(): + if hasattr(node,"hasAttributes") and node.hasAttributes(): sa=node.getAttribute('style') if sa!='': styles=simplestyle.parseStyle(sa)