log complete update

This commit is contained in:
xeals 2023-04-07 10:13:45 +10:00
parent 132096b427
commit e421bd1de9
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

1
bot.py
View File

@ -33,6 +33,7 @@ def _update_db():
games.append(line.strip()) games.append(line.strip())
sp.run(["./index.py", "-o", _DB] + games) sp.run(["./index.py", "-o", _DB] + games)
shutil.move(_DB, _DB_DEST) shutil.move(_DB, _DB_DEST)
_log.info("updated db")
except: except:
_log.exception(f"failed updating db") _log.exception(f"failed updating db")