print exceptions just in case

This commit is contained in:
13xforever
2018-06-17 14:58:11 +05:00
committed by Roberto Anić Banić
parent f37e44f782
commit b4635f51c0

View File

@@ -50,7 +50,8 @@ def init():
)
tx.commit()
print("Updated [warning] columns")
except Exception:
except Exception as e:
print(str(e))
tx.rollback()
try:
with db.atomic() as tx:
@@ -59,5 +60,6 @@ def init():
)
tx.commit()
print("Updated [warning] indices")
except Exception:
except Exception as e:
print(str(e))
tx.rollback()