From 6ed5cfbc55d760905e2d5ce5c8d34d3da7388e37 Mon Sep 17 00:00:00 2001 From: HeisenBerg? Date: Sat, 27 Jul 2024 07:48:02 +0800 Subject: [PATCH] Update main.py --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index fcbb0865..7db3eabc 100644 --- a/main.py +++ b/main.py @@ -138,6 +138,9 @@ async def parse(self, context): base_url = "https://arxiv.paperswithcode.com/api/v0/papers/" _paper = {} arxiv_res = context.get("response") + if len()==0: + print('no respomsr data') + return async with aiohttp.ClientSession() as session: for result in arxiv_res: paper_id = result.get_short_id()