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
4 changes: 2 additions & 2 deletions holehe/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def get_functions(modules,args=None):

def check_update():
"""Check and update holehe if not the last version"""
check_version = httpx.get("https://pypi.org/pypi/holehe/json")
if check_version.json()["info"]["version"] != __version__:
check_version = httpx.get("https://pypi.org/pypi/holehe/json").text
if json.loads(check_version)["info"]["version"] != __version__:
if os.name != 'nt':
p = Popen(["pip3",
"install",
Expand Down