mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-26 04:33:35 +03:00
Merge pull request #1248 from Eikosa/patch-1
Check_pypi_version now returns bool
This commit is contained in:
commit
b0a21c28bb
@ -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}')
|
||||
|
Loading…
Reference in New Issue
Block a user