mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
print exceptions just in case
This commit is contained in:
committed by
Roberto Anić Banić
parent
f37e44f782
commit
b4635f51c0
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user