Skip to content

Commit 2d14842

Browse files
committed
Fixed error #6
1 parent 2931999 commit 2d14842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truecallerpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def truecallerpy_search_phonenumber(config):
141141
phoneNumberNational), phonenumbers.region_code_for_number(number), installationId)
142142

143143
# print(jsonInfo["data"])
144-
if jsonInfo["data"] == None and jsonInfo["errorCode"] == 429:
144+
if jsonInfo["data"] == None and jsonInfo["errorCode"] == 429 and config['json'] == False:
145145
raise SystemExit(
146146
'\x1b[33mToo many requests. \nPlease try again tomorrow, maybe!\x1b[0m')
147147
elif jsonInfo["data"] == None and config["json"] == False and config["raw"] == False and config["email"] == False:

0 commit comments

Comments
 (0)