Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ipinfo/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def getBatchDetails(
quota errors.
Defaults to on.
"""
if batch_size == None:
if batch_size is None:
batch_size = BATCH_MAX_SIZE

result = {}
Expand Down Expand Up @@ -391,8 +391,8 @@ def getBatchDetailsIter(

try:
response = requests.post(url, json=batch, headers=headers)
except Exception as e:
raise e
except Exception:
raise

try:
if response.status_code == 429:
Expand Down