Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush4921 committed May 17, 2022
1 parent 59aee7e commit fdfdbb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pygetpapers/config.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pygetpapers]
version=1.2.1
version=1.2.3

[europe_pmc]
query_url=https://www.ebi.ac.uk/europepmc/webservices/rest/searchPOST
Expand Down
9 changes: 6 additions & 3 deletions pygetpapers/repository/europe_pmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,12 @@ def build_and_send_query(
queryparams = self.buildquery(
cursor_mark, maximum_hits_per_page, query, synonym=synonym
)
retireved_metadata_dictionary = self.download_tools.gets_result_dict_for_query(
queryparams[HEADERS], queryparams[PAYLOAD]
)
try:
retireved_metadata_dictionary = self.download_tools.gets_result_dict_for_query(
queryparams[HEADERS], queryparams[PAYLOAD]
)
except:
retireved_metadata_dictionary = None
return retireved_metadata_dictionary

@staticmethod
Expand Down

0 comments on commit fdfdbb6

Please sign in to comment.