python: Use format string for logging str(obj).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-10-07 22:34:49 -07:00
committed by Tim Abbott
parent fcd81a8473
commit b45484573e
4 changed files with 5 additions and 7 deletions

View File

@@ -958,7 +958,7 @@ class EmbeddedBotWorker(QueueProcessingWorker):
bot_handler=self.get_bot_api_client(user_profile),
)
except EmbeddedBotQuitException as e:
logging.warning(str(e))
logging.warning("%s", e)
@assign_queue("deferred_work")