better fix for prevention of the crasher

This commit is contained in:
Steffen Schaumburg 2010-12-25 20:54:25 +01:00
parent 683d89389b
commit 563efc0335

View File

@ -308,7 +308,8 @@ class Database:
self.saveActions = False if self.import_options['saveActions'] == False else True self.saveActions = False if self.import_options['saveActions'] == False else True
if self.is_connected(): if self.is_connected():
self.get_sites() if not self.wrongDbVersion:
self.get_sites()
self.connection.rollback() # make sure any locks taken so far are released self.connection.rollback() # make sure any locks taken so far are released
#end def __init__ #end def __init__