Mercurial > MadButterfly
diff pyink/domview.py @ 1407:f19121bd6a6c
Check if the name is defined for old SVG file.
author | wycc |
---|---|
date | Wed, 06 Apr 2011 07:48:29 +0800 |
parents | ac61d86987af |
children | 485cca025a77 |
line wrap: on
line diff
--- a/pyink/domview.py Tue Apr 05 10:23:30 2011 +0800 +++ b/pyink/domview.py Wed Apr 06 07:48:29 2011 +0800 @@ -35,7 +35,10 @@ pass def name(self): - name = self.scenes_node.getAttribute('name') + try: + name = self.scenes_node.getAttribute('name') + except: + name='default' return name def rename(self, new_name):