[shotwell/wip/cleanup-facedetect: 1/6] Ignore errors from load_net.
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/cleanup-facedetect: 1/6] Ignore errors from load_net.
- Date: Sun, 14 Aug 2022 17:49:13 +0000 (UTC)
commit 9e14999443d64d4dc2e7082737dd791b22f42c9b
Author: Jens Georg <mail jensge org>
Date: Sun Aug 14 17:00:03 2022 +0200
Ignore errors from load_net.
This just means DNN is not working
src/faces/FaceDetect.vala | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/faces/FaceDetect.vala b/src/faces/FaceDetect.vala
index 6b019968..71cc474c 100644
--- a/src/faces/FaceDetect.vala
+++ b/src/faces/FaceDetect.vala
@@ -64,13 +64,12 @@ public class FaceDetect {
// Service file should automatically run the facedetect binary
interface = Bus.get_proxy_sync (BusType.SESSION, DBUS_NAME, DBUS_PATH);
interface.load_net(net_file);
+ connected = true;
} catch(IOError e) {
AppWindow.error_message(ERROR_MESSAGE);
} catch(DBusError e) {
AppWindow.error_message(ERROR_MESSAGE);
}
- connected = true;
-
}
}
@@ -87,11 +86,8 @@ public class FaceDetect {
null);
Idle.add(() => {
try {
- if (interface.load_net(net_file))
- connected = true;
- else {
- AppWindow.error_message(ERROR_MESSAGE);
- }
+ interface.load_net(net_file);
+ connected = true;
} catch (Error error) {
critical("Failed to call load_net: %s", error.message);
AppWindow.error_message(ERROR_MESSAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]