ultralytics 8.0.34 security updates and fixes (#924)

Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
Co-authored-by: Fabian Greavu <fabiangreavu@gmail.com>
Co-authored-by: Yonghye Kwon <developer.0hye@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocher 2023-02-11 01:26:44 +04:00 committed by GitHub
parent 254adfa652
commit d32b339373
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 134 additions and 120 deletions

View file

@ -155,7 +155,7 @@ def check_online() -> bool:
bool: True if connection is successful, False otherwise.
"""
import socket
with contextlib.suppress(subprocess.CalledProcessError):
with contextlib.suppress(Exception):
host = socket.gethostbyname("www.github.com")
socket.create_connection((host, 80), timeout=2)
return True