Fix crash when google task list already deleted

pull/795/head
Alex Baker 5 years ago
parent e110b8bd64
commit 649b009d58

@ -81,7 +81,10 @@ public class GtasksInvoker {
} }
public void deleteGtaskList(String listId) throws IOException { public void deleteGtaskList(String listId) throws IOException {
execute(service.tasklists().delete(listId)); try {
execute(service.tasklists().delete(listId));
} catch (HttpNotFoundException ignored) {
}
} }
public TaskList renameGtaskList(String listId, String title) throws IOException { public TaskList renameGtaskList(String listId, String title) throws IOException {
@ -96,7 +99,6 @@ public class GtasksInvoker {
try { try {
execute(service.tasks().delete(listId, taskId)); execute(service.tasks().delete(listId, taskId));
} catch (HttpNotFoundException ignored) { } catch (HttpNotFoundException ignored) {
} }
} }

Loading…
Cancel
Save