fix typo in error type

This commit is contained in:
Thomas Ward 2024-12-09 11:33:43 -05:00 committed by GitHub
parent fd7287fe61
commit 8b49df848f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ try:
from ultralytics import __version__ as ultralytics_version from ultralytics import __version__ as ultralytics_version
if Version(ultralytics_version) > Version('8.3.40'): if Version(ultralytics_version) > Version('8.3.40'):
raise EnvironmentError("[SECURITY ALERT] Unsafe malicious versions of Ultralytics detected, last known good version 8.3.40.") raise EnvironmentError("[SECURITY ALERT] Unsafe malicious versions of Ultralytics detected, last known good version 8.3.40.")
except ModuleNotFound: except ModuleNotFoundError:
pass pass
except Exception: except Exception:
raise raise