Skip to content

Commit 6df269b

Browse files
committed
feat: reduce timeout for TIGER data retrieval and enable verbose logging in pre-commit config
1 parent 4b3be04 commit 6df269b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ repos:
2727
always_run: true
2828
args:
2929
- -x
30+
- -vv
31+
- --durations=20
3032

3133
# - repo: https://github.com/pre-commit/mirrors-mypy
3234
# rev: v1.10.0 # Use the latest stable version or pin to your preference

services/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_tiger_data(
8181
"returnGeometry": "false",
8282
}
8383
try:
84-
resp = httpx.get(url, params=params, timeout=30)
84+
resp = httpx.get(url, params=params, timeout=5)
8585
except Exception as e:
8686
print(f"Error getting TIGER data for POINT ({lon} {lat}) {e}")
8787
return None

0 commit comments

Comments
 (0)