remove unnecessary code

master
Aevann 2023-09-26 15:45:27 +03:00
parent c9f3b95f86
commit 8eada5a5ac
1 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ from sqlalchemy.sql import text
import click
import requests
import traceback
import files.helpers.offsitementions as offsitementions
import files.helpers.stats as stats
@ -108,8 +107,8 @@ def cron_fn(every_5m, every_1d, every_fri_12, every_fri_23, every_sat_00, every_
g.db.commit()
except:
print(traceback.format_exc(), flush=True)
g.db.rollback()
raise
g.db.close()
del g.db