Skip to content

Commit

Permalink
Update Kunyu Version V1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wikiZ authored Nov 14, 2021
1 parent 31b3df3 commit 35e5ea9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kunyu/core/zoomeye.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@ def __request(self, login_url, data=None, headers=None):
the processed data is received and returned to the original data,
which is displayed on the terminal after processing by the presentation layer.
"""
timeout = int(GlobalVar.get_timeout_resp())
time = int(GlobalVar.get_timeout_resp())
# The API is not available for tourist users
if self.method == "GET":
resp = requests.get(
login_url,
data=data,
headers=headers,
timeout=timeout,
timeout=time,
verify=False
)
else:
resp = requests.post(
login_url,
data=data,
headers=headers,
timeout=timeout,
timeout=time,
verify=False
)
self.check_status(resp)
Expand Down Expand Up @@ -550,4 +550,4 @@ def command_hostcrash(cls, args):
logger.warning("Please Host IP and Domain\n")

except KeyboardInterrupt:
return
return

0 comments on commit 35e5ea9

Please sign in to comment.