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()); googleAccountManager.invalidateToken(credential.getAccessToken());
credential.setAccessToken(null); credential.setAccessToken(null);
return execute(request, true); return execute(request, true);
} else if (e.getStatusCode() == 404) {
throw new HttpNotFoundException(e);
} else { } else {
throw e; throw e;
} }

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

Loading…
Cancel
Save