Skip to content

Commit d4f1e4b

Browse files
committed
raise exception
1 parent 2429a33 commit d4f1e4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ipinfo/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def getBatchDetailsIter(
376376
try:
377377
response = requests.post(url, json=batch, headers=headers)
378378
except Exception as e:
379-
return handler_utils.return_or_fail(raise_on_fail, e)
379+
raise e
380380

381381
try:
382382
if response.status_code == 429:

ipinfo/handler_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ async def process_batch(batch):
395395
self.cache[cache_key(ip_address)] = details
396396
results[ip_address] = details
397397
except Exception as e:
398-
return handler_utils.return_or_fail(raise_on_fail, e, results)
398+
raise e
399399

400400
for i in range(0, len(lookup_addresses), batch_size):
401401
batch = lookup_addresses[i : i + batch_size]

0 commit comments

Comments
 (0)