Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 675936a5 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Remove testing exception

parent 70e75ae3
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import com.google.android.material.snackbar.Snackbar;
import com.nextcloud.android.sso.exceptions.NextcloudFilesAppAccountNotFoundException;
import com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException;
import com.nextcloud.android.sso.exceptions.NoCurrentAccountSelectedException;
import com.nextcloud.android.sso.exceptions.TokenMismatchException;
import com.nextcloud.android.sso.helper.SingleAccountHelper;
import com.nextcloud.android.sso.model.SingleSignOnAccount;

@@ -465,9 +464,7 @@ public class NoteServerSyncHelper {
            } catch (NextcloudHttpRequestFailedException e) {
                Log.d(TAG, "Server returned HTTP Status Code " + e.getStatusCode() + " - " + e.getMessage());
                if (e.getStatusCode() == HTTP_NOT_MODIFIED) {
                    exceptions.add(new TokenMismatchException());
                    return false;
//                    return true;
                    return true;
                } else {
                    exceptions.add(e);
                    return false;