From fac74113ca348796f80f97e760d2be001394e2ee Mon Sep 17 00:00:00 2001 From: raghucharan16 Date: Fri, 28 Feb 2025 16:52:37 +0530 Subject: [PATCH] added exceptional handling --- deepface/models/facial_recognition/Buffalo_L.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepface/models/facial_recognition/Buffalo_L.py b/deepface/models/facial_recognition/Buffalo_L.py index 960542b..ea71f8e 100644 --- a/deepface/models/facial_recognition/Buffalo_L.py +++ b/deepface/models/facial_recognition/Buffalo_L.py @@ -22,7 +22,7 @@ class Buffalo_L(FacialRecognition): try: from insightface.model_zoo import get_model except Exception as err: - raise Exception( + raise ModuleNotFoundError( "InsightFace and its dependencies are optional for the Buffalo_L model. " "Please install them with: " "pip install insightface>=0.7.3 onnxruntime>=1.9.0 typing-extensions pydantic"