Merge pull request #1248 from Eikosa/patch-1

Check_pypi_version now returns bool
This commit is contained in:
H Lohaus 2023-11-15 18:22:55 +01:00 committed by GitHub
commit b0a21c28bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}')