Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeout in request to handle off-line use cases in examples #718

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

sjsrey
Copy link
Member

@sjsrey sjsrey commented Jun 7, 2024

@@ -643,7 +643,7 @@ def _remote_data():

url = "https://geodacenter.github.io/data-and-lab//"
try:
page = requests.get(url)
page = requests.get(url, timeout=10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious if there is a specific reason for 10 seconds?

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.9%. Comparing base (bcabdbc) to head (44da853).
Report is 22 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #718     +/-   ##
=======================================
- Coverage   85.0%   83.9%   -1.1%     
=======================================
  Files        141     145      +4     
  Lines      15203   15567    +364     
=======================================
+ Hits       12924   13056    +132     
- Misses      2279    2511    +232     
Files Coverage Δ
libpysal/examples/remotes.py 74.4% <0.0%> (ø)

... and 10 files with indirect coverage changes

@martinfleis martinfleis merged commit eacc36d into pysal:main Jun 10, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants