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:
parent
510f47fd08
commit
2996476e03
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user