From 8b49df848f3bf4615437e5740ec538da07f5ba3c Mon Sep 17 00:00:00 2001 From: Thomas Ward Date: Mon, 9 Dec 2024 11:33:43 -0500 Subject: [PATCH] fix typo in error type --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e1c949fdd..854e2cec9 100644 --- a/main.py +++ b/main.py @@ -18,7 +18,7 @@ try: from ultralytics import __version__ as ultralytics_version 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.") -except ModuleNotFound: +except ModuleNotFoundError: pass except Exception: raise