From 7af64837a258b2dc83b8b2a44c98ddd09dced349 Mon Sep 17 00:00:00 2001 From: Michael Welter Date: Wed, 4 Oct 2023 18:55:32 +0200 Subject: tracker/nn: Catch all standard exceptions on tracker init failure --- tracker-neuralnet/ftnoir_tracker_neuralnet.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp index 2243c143..edb3d0e7 100644 --- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp +++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp @@ -502,6 +502,11 @@ bool NeuralNetTracker::load_and_initialize_model() << e.what(); return false; } + catch (const std::exception &e) + { + qDebug() << "Failed to initialize the neural network models. Error message: " << e.what(); + return false; + } return true; } -- cgit v1.2.3