[geary/mjog/1147-startup-warning: 2/2] Application.Controller: Ignore file not found for e8061379
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/1147-startup-warning: 2/2] Application.Controller: Ignore file not found for e8061379
- Date: Wed, 10 Feb 2021 11:21:27 +0000 (UTC)
commit a9aa736f67cef3812f9e40a1a0ffb4d18a55a880
Author: Michael Gratton <mike vee net>
Date: Wed Feb 10 22:20:24 2021 +1100
Application.Controller: Ignore file not found for e8061379
src/client/application/application-controller.vala | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/client/application/application-controller.vala
b/src/client/application/application-controller.vala
index 93832fbf1..b7087c750 100644
--- a/src/client/application/application-controller.vala
+++ b/src/client/application/application-controller.vala
@@ -195,9 +195,13 @@ internal class Application.Controller :
// Commit e8061379 mistakenly used config_dir for cert manager
// above, so remove it if found. This can be pulled out post
// v40.
- yield Geary.Files.recursive_delete_async(
- config_dir.get_child("pinned-certs")
- );
+ try {
+ yield Geary.Files.recursive_delete_async(
+ config_dir.get_child("pinned-certs")
+ );
+ } catch (GLib.IOError.NOT_FOUND err) {
+ // exactly as planned
+ }
SecretMediator? libsecret = yield new SecretMediator(cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]