Correction
svn: r1547
This commit is contained in:
parent
0403b71332
commit
697e5cb456
@ -951,6 +951,7 @@ class Gramps:
|
|||||||
ReadXML.importData(self.db,dbname,None)
|
ReadXML.importData(self.db,dbname,None)
|
||||||
except:
|
except:
|
||||||
print "Error importing %s" % filename
|
print "Error importing %s" % filename
|
||||||
|
os._exit(1)
|
||||||
elif format == 'gramps-pkg':
|
elif format == 'gramps-pkg':
|
||||||
# Create tempdir, if it does not exist, then check for writability
|
# Create tempdir, if it does not exist, then check for writability
|
||||||
tmpdir_path = os.path.expanduser("~/.gramps/tmp" )
|
tmpdir_path = os.path.expanduser("~/.gramps/tmp" )
|
||||||
@ -983,6 +984,7 @@ class Gramps:
|
|||||||
ReadXML.importData(self.db,dbname,None)
|
ReadXML.importData(self.db,dbname,None)
|
||||||
except:
|
except:
|
||||||
print "Error importing %s" % filename
|
print "Error importing %s" % filename
|
||||||
|
os._exit(1)
|
||||||
# Clean up tempdir after ourselves
|
# Clean up tempdir after ourselves
|
||||||
files = os.listdir(tmpdir_path)
|
files = os.listdir(tmpdir_path)
|
||||||
for fn in files:
|
for fn in files:
|
||||||
|
Loading…
Reference in New Issue
Block a user