Mercurial > MadButterfly
changeset 1407:f19121bd6a6c
Check if the name is defined for old SVG file.
author | wycc |
---|---|
date | Wed, 06 Apr 2011 07:48:29 +0800 |
parents | 88c8c874f4b8 |
children | c918b79892ab |
files | pyink/domview.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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):