From abbf2927ec3104d95cec3c0caf65a917792f534a Mon Sep 17 00:00:00 2001 From: Eikosa Date: Mon, 13 Nov 2023 21:56:08 +0300 Subject: [PATCH] Check_pypi_version now returns value --- g4f/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/g4f/__init__.py b/g4f/__init__.py index c712829c..fd8aa306 100644 --- a/g4f/__init__.py +++ b/g4f/__init__.py @@ -15,6 +15,8 @@ def check_pypi_version() -> None: if version != latest_version: print(f'New pypi version: {latest_version} (current: {version}) | pip install -U g4f') + return False + return True except Exception as e: print(f'Failed to check g4f pypi version: {e}')