Ailitonia / omega-miya

基于 nonebot2 的多平台机器人
MIT License
271 stars 49 forks source link

pixiv专辑报错 #114

Closed lancer-wang closed 2 years ago

lancer-wang commented 2 years ago

image

File "/cobudy/omega-miya/omega_miya/utils/process_utils/init.py", line 129, in _wrapper result = await func(*args, kwargs) File "/cobudy/omega-miya/omega_miya/plugins/pixivsion/monitor.py", line 22, in pixivision_article_update_monitor await send_pixivision_new_article() File "/cobudy/omega-miya/omega_miya/plugins/pixivsion/utils.py", line 173, in send_pixivision_new_article await semaphore_gather(tasks=add_artwork_tasks, semaphore_num=10, return_exceptions=False) File "/cobudy/omega-miya/omega_miya/utils/process_utils/init.py", line 203, in semaphore_gather result = await asyncio.gather((_wrap_coro(coro) for coro in tasks), return_exceptions=return_exceptions) File "/cobudy/omega-miya/omega_miya/utils/process_utils/init.py", line 196, in _wrap_coro _result = await coro File "/cobudy/omega-miya/omega_miya/plugins/pixivsion/utils.py", line 129, in _add_article_into_database article_data = await article.query_article() File "/cobudy/omega-miya/omega_miya/web_resource/pixiv/pixivision.py", line 63, in query_article article_result = await run_sync(parse_pixivision_article_page)(content=article_data.result, File "/cobudy/omega-miya/omega_miya/utils/process_utils/init.py", line 85, in _wrapper return await loop.run_in_executor(None, p_func) File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, self.kwargs) File "/cobudy/omega-miya/omega_miya/web_resource/pixiv/helper.py", line 155, in parse_pixivision_article_page name='div', attrs={'class': 'am__description _medium-editor-text'}).get_text(strip=True) AttributeError: 'NoneType' object has no attribute 'get_text'

lancer-wang commented 2 years ago

大概是p站调整页面格式了? omega-miya/omega_miya/web_resource/pixiv/helper.py", line 155的代码

Ailitonia commented 2 years ago

Fixed in 19a4f63ec4ea93157f4c5099b9895503b316f63f