Throw HttpNotFoundException

pull/820/head
Alex Baker 5 years ago
parent 23f4741425
commit ec02699166

@ -176,6 +176,8 @@ public class GtasksInvoker {
googleAccountManager.invalidateToken(credential.getAccessToken());
credential.setAccessToken(null);
return execute(request, true);
} else if (e.getStatusCode() == 404) {
throw new HttpNotFoundException(e);
} else {
throw e;
}

@ -369,7 +369,6 @@ public class GoogleTaskSynchronizer {
}
gtasksInvoker.updateGtask(listId, remoteModel);
} catch (HttpNotFoundException e) {
Timber.e(e);
googleTaskDao.delete(gtasksMetadata);
return;
}

Loading…
Cancel
Save