Compare commits

..

No commits in common. "e421bd1de9fc77a17cd5de221dc74136a9eb5dbf" and "c3df316aa47e1a2234d5af5855d109d3739d8015" have entirely different histories.

5
bot.py
View File

@ -4,8 +4,8 @@ from discord.utils import setup_logging
import argparse import argparse
import discord import discord
import logging import logging
import os
import re import re
import shutil
import subprocess as sp import subprocess as sp
discord.utils.setup_logging() discord.utils.setup_logging()
@ -32,8 +32,7 @@ def _update_db():
for line in f: for line in f:
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) os.rename(_DB, _DB_DEST)
_log.info("updated db")
except: except:
_log.exception(f"failed updating db") _log.exception(f"failed updating db")