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