Skip to content

Commit ebb6c2b

Browse files
committed
TASK: Use string format method instead of concat
1 parent ddf9649 commit ebb6c2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def game_commands(bot, update):
283283
return
284284

285285
if not db.is_user_saved(user_id):
286-
logger.info("New user - " + str(user_id))
286+
logger.info("New user - {}".format(user_id))
287287
db.add_user(user_id, "en", first_name, last_name, username)
288288

289289
if chat_id > 0:
@@ -296,7 +296,7 @@ def game_commands(bot, update):
296296
# TODO multiplayer games
297297
game = game_handler.get_game_by_chatid(chat_id)
298298
if game is not None:
299-
logger.debug("Game already existing. Forwarding text '" + text + "' to game")
299+
logger.debug("Game already existing. Forwarding text '{}' to game".format(text))
300300
game.analyze_message(update)
301301

302302

0 commit comments

Comments
 (0)