From 5bb8b7687813837c18c959b7c2bcedfb7a989890 Mon Sep 17 00:00:00 2001 From: Stephen Silver Date: Sun, 21 Sep 2008 15:10:19 +0000 Subject: Fix for GIMP palette export: check that the node has a hasAttributes() method before calling it, otherwise it throws an exception. (bzr r6861) --- share/extensions/export_gimp_palette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3