diff --git a/discord_bot.py b/discord_bot.py index d454d65..032d784 100644 --- a/discord_bot.py +++ b/discord_bot.py @@ -27,7 +27,7 @@ channel_id = 1152167937852055552 @tasks.loop(minutes=1) async def send_message(channel): if utils.is_game_time(): - send_message.change_interval(minutes=1) + send_message.change_interval(minutes=3) else: send_message.change_interval(minutes=15) diff --git a/dota.py b/dota.py index 42d22b5..8c4d5ed 100644 --- a/dota.py +++ b/dota.py @@ -76,8 +76,8 @@ class Friend(BaseModel): def get_recent_matches(self, limit=1): try: return player_client.get_players_by_account_id_select_matches(self.steam_id, limit=limit) - except: - logger.error('fail to get player %s recent matches' % self.steam_id) + except Exception as e: + logger.error('fail to get player %s recent matches. error: %s' % (self.steam_id, e)) return [] def serialize_recent_matches(self, limit=1):