Handle 'name' not being initialized.

svn: r1074
This commit is contained in:
Don Allingham 2002-07-11 16:19:10 +00:00
parent 985af0cb00
commit 4c42d40c5b

View File

@ -158,6 +158,8 @@ class ImageSelect:
name = RelImage.import_media_object(filename,self.path, name = RelImage.import_media_object(filename,self.path,
mobj.getId()) mobj.getId())
mobj.setLocal(1) mobj.setLocal(1)
else:
name = filename
else: else:
if self.external.get_active() == 1: if self.external.get_active() == 1:
name = filename name = filename