Commits

Moises Henriquez  committed 4800e0e

Added history clean up on crash

  • Participants
  • Parent commits d19caa7

Comments (0)

Files changed (2)

File src/scripts/vpackager

     dbpath = preferences.VPConf().GetSetting('database_home')
     db = dbutils.dbase(os.path.join(dbpath, 'vpackager.db'))
     try:
-	    db.CreateTables()
+        db.CreateTables()
     except:
-	    # Tables already exist
-	    pass
+        # Tables already exist
+        pass
+    db._cleanup_history()
     w = bot.Gui(dbase_model = db)
     return w
 
     w.show_all()
     gtk.gdk.threads_init()
     gtk.main()
-

File src/vpackager/preferences.py

     def SetSetting(self, key, value):
         self.read(dotcfg)
         self.set('vpackager', key, value)
-        return self.SaveConfig()
+        return self.SaveConfig()