summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/extensions/export_gimp_palette.py2
1 files changed, 1 insertions, 1 deletions
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)