From aade1abca49b53eb562fc437a4de942b28eb53e8 Mon Sep 17 00:00:00 2001 From: Vishal Date: Wed, 18 Oct 2023 15:24:37 +0200 Subject: [PATCH] Minor --- Makefile | 1 - scopuscaller/call_semanticscholar.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 159c7cd..3e89c60 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ install: lint: pylint --disable=R,C scopuscaller/call_scopus.py - pylint --disable=R,C scopuscaller/call_semanticscholar.py format: black *.py diff --git a/scopuscaller/call_semanticscholar.py b/scopuscaller/call_semanticscholar.py index 43e1759..8ae56f9 100644 --- a/scopuscaller/call_semanticscholar.py +++ b/scopuscaller/call_semanticscholar.py @@ -44,7 +44,7 @@ async def fetch_articles_async(df): try: list_abstracts.append(content["abstract"]) list_topics.append(content["topics"]) - except: + except Exception: list_abstracts.append("None") list_topics.append("None") @@ -80,6 +80,6 @@ def get_abstracts(df): df["topics"] = list_topics # Print a message indicating that the process is complete - print(f"Done") + print("Done") return df