Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def get_credit_summary(api_key):
|
|
54 |
|
55 |
for attempt in range(max_retries):
|
56 |
try:
|
57 |
-
response = requests.get(API_ENDPOINT, headers=headers, timeout=
|
58 |
response.raise_for_status()
|
59 |
data = response.json().get("data", {})
|
60 |
total_balance = data.get("totalBalance", 0)
|
|
|
54 |
|
55 |
for attempt in range(max_retries):
|
56 |
try:
|
57 |
+
response = requests.get(API_ENDPOINT, headers=headers, timeout=2)
|
58 |
response.raise_for_status()
|
59 |
data = response.json().get("data", {})
|
60 |
total_balance = data.get("totalBalance", 0)
|