Check for None as value for update function

svn: r1109
This commit is contained in:
Don Allingham 2002-08-05 13:32:46 +00:00
parent ff83ad8d29
commit 7248038876
3 changed files with 13 additions and 13 deletions

View File

@ -366,6 +366,7 @@ class GrampsParser:
self.object.setMimeType(u2l(attrs['mime']))
self.object.setDescription(u2l(attrs['description']))
src = u2l(attrs["src"])
if src:
if src[0] != '/':
self.object.setPath("%s/%s" % (self.base,src))
self.object.setLocal(1)

View File

@ -100,9 +100,8 @@ def importData(database, filename, callback):
traceback.print_exc()
return 0
except:
GnomeErrorDialog(_("Error reading %s") % filename)
import traceback
traceback.print_exc()
import DisplayTrace
DisplayTrace.DisplayTrace()
return 0
xml_file.close()
@ -192,9 +191,8 @@ def loadRevision(database, file, filename, revision, callback=None):
traceback.print_exc()
return 0
except:
GnomeErrorDialog(_("Error reading %s") % filename)
import traceback
traceback.print_exc()
import DisplayTrace
DisplayTrace.DisplayTrace()
return 0
file.close()

View File

@ -83,6 +83,7 @@ class SourceSelector:
del self.orig[:]
for s in self.list:
self.orig.append(s)
if self.update:
self.update(self.parent)
Utils.destroy_passed_object(self.sourcesel)