fix: 修复日志打印时参数格式错误

This commit is contained in:
Relakkes
2023-12-22 23:10:44 +08:00
parent bced7f6802
commit 273c9a316b
4 changed files with 4 additions and 4 deletions

View File

@@ -172,7 +172,7 @@ class KuaishouCrawler(AbstractCrawler):
except DataFetchError as ex:
utils.logger.error(f"[get_comments] get video_id: {video_id} comment error: {ex}")
except Exception as e:
utils.logger.error(f"[get_comments] may be been blocked, err:", e)
utils.logger.error(f"[get_comments] may be been blocked, err:{e}")
# use time.sleeep block main coroutine instead of asyncio.sleep and cacel running comment task
# maybe kuaishou block our request, we will take a nap and update the cookie again
current_running_tasks = comment_tasks_var.get()