Commits

Moises Henriquez committed c47e9ad

Fixed crash problem at startup related to the sqlite dbase

  • Participants
  • Parent commits 7a14a8a

Comments (0)

Files changed (1)

File src/vpackager/bot.py

 
     def CheckDatabase(self):
         """ Run a sanity check and make sure the databse tables exist"""
-        self.dbase_model._cleanup_history()
-        if self.dbase_model.verify_tables() is True:
-            return self.dbase_model.CreateTables()
+        try:
+            self.dbase_model.CreateTables()
+        except:
+            pass
+        #self.dbase_model._cleanup_history()
+        #if self.dbase_model.verify_tables() is True:
+        #    return self.dbase_model.CreateTables()
 
     def _get_menubar(self):
         mb = gtk.MenuBar()
 
 if __name__ == '__main__':
     model = dbutils.dbase()
+    try:
+        model.CreateTables()
+    except:
+       pass
     w = Gui(dbase_model = model)
     w.show_all()
     gtk.gdk.threads_init()