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

Commit 24196ada authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Make NoSuchFileException less verbose

It was flooding Sentry with 104K events.
parent 2ac453e8
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import com.owncloud.android.lib.resources.files.model.RemoteFile;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;

import foundation.e.drive.database.DbHelper;
@@ -185,6 +186,8 @@ public class DownloadFileOperation extends RemoteOperation {
                tmpFile.delete();
                return true;
            }
        } catch (NoSuchFileException exception) {
            Timber.w(exception);
        } catch (IOException | SecurityException | NullPointerException exception) {
            Timber.e(exception);
        }