Skip to content

Commit

Permalink
Add default timeout for POST
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekSuchanek committed Jan 19, 2022
1 parent b420568 commit a9a50cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nanopub_submitter/nanopub.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def _publish_nanopub(nanopub_bundle: str, ctx: NanopubProcessingContext) -> list
headers={
'Content-Type': f'application/trig; charset={DEFAULT_ENCODING}',
'User-Agent': f'{PACKAGE_NAME}/{PACKAGE_VERSION}',
}
},
timeout=10,
)
if not r.ok:
ok = False
Expand Down

0 comments on commit a9a50cf

Please sign in to comment.