From b34524334c9b8d132d172ffc327183abf41f4e10 Mon Sep 17 00:00:00 2001 From: Lili Date: Tue, 3 Jan 2023 13:34:06 +0100 Subject: [PATCH] rewrite error message make it clear that read_all_users_with_username reads multiple values --- tlapbot/owncast_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tlapbot/owncast_helpers.py b/tlapbot/owncast_helpers.py index ca56ed7..7a16984 100644 --- a/tlapbot/owncast_helpers.py +++ b/tlapbot/owncast_helpers.py @@ -51,8 +51,8 @@ def read_all_users_with_username(db, username): users = cursor.fetchall() return users except Error as e: - current_app.logger.error("Error occured reading points from username:", e.args[0]) - current_app.logger.error("To user:", username) + current_app.logger.error("Error occured reading points by username:", e.args[0]) + current_app.logger.error("To everyone with username:", username) def give_points_to_user(db, user_id, points):