summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Welter <michael@welter-4d.de>2023-10-04 18:55:32 +0200
committerMichael Welter <michael@welter-4d.de>2023-10-04 18:55:32 +0200
commit7af64837a258b2dc83b8b2a44c98ddd09dced349 (patch)
treefbdfe66bf0971f05de45bcf3fa4ddd62f88f70d5
parent8b0d87ff815b7ac6370e6123b6344c2a9a12fd22 (diff)
tracker/nn: Catch all standard exceptions on tracker init failure
-rw-r--r--tracker-neuralnet/ftnoir_tracker_neuralnet.cpp5
1 files changed, 5 insertions, 0 deletions
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;
}