From df4ba55f39ab5b5ec4a7a196050b45dc7a697896 Mon Sep 17 00:00:00 2001 From: sasilver Date: Sun, 21 Sep 2008 15:10:19 +0000 Subject: [PATCH] Fix for GIMP palette export: check that the node has a hasAttributes() method before calling it, otherwise it throws an exception. --- 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) -- 2.30.2