def upgradeDB(self): try: dao.addColumns() except Exception: pass self.window.withdraw() upgradeDB.upgrade() self.window.deiconify() windows.showError(self.window, "Upgrade", "Your Database has been updated")
def addColumns(): dao.addColumns()