soppressi errori nel porting del vecchio db

This commit is contained in:
mac12m99
2021-02-06 14:25:35 +01:00
parent 7588c1a9cf
commit cc61259e88

View File

@@ -454,6 +454,7 @@ if __name__ == "__main__":
# port old db to new
old_db_name = filetools.join(config.get_data_path(), "kod_db.sqlite")
if filetools.isfile(old_db_name):
try:
import sqlite3
from core import db
@@ -468,6 +469,7 @@ if __name__ == "__main__":
db['viewed'][ris[0]] = show
else: # film
db['viewed'][ris[0]] = ris[3]
finally:
filetools.remove(old_db_name)
monitor = AddonMonitor()