From 2996476e03a86ea56fd8148e9a434d6f65af890a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Matthias=20Sch=C3=A4fer?= Date: Sun, 21 Jan 2024 15:34:14 +0100 Subject: [PATCH] Remove call to syncDelete The method does no longer exist as of version 2.1.45, which is the minimum supported version as of creation of this commit. --- plugin/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/__init__.py b/plugin/__init__.py index 5c50677..9620f3d 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -708,10 +708,7 @@ class AnkiConnect: @util.api() def deleteMediaFile(self, filename): - try: - self.media().syncDelete(filename) - except AttributeError: - self.media().trash_files([filename]) + self.media().trash_files([filename]) @util.api() def getMediaDirPath(self):