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.
This commit is contained in:
Philipp Matthias Schäfer 2024-01-21 15:34:14 +01:00 committed by Alex Yatskov
parent 510f47fd08
commit 2996476e03

View File

@ -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):