fixup: ruff check complaints

This commit is contained in:
tcely 2025-06-02 10:29:34 -04:00 committed by GitHub
parent 98bca72299
commit a40233905f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ def copy_thumbnail(self):
if not self.source.copy_thumbnails: if not self.source.copy_thumbnails:
return return
if not self.thumb_file_exists: if not self.thumb_file_exists:
from ..tasks import delete_task_by_media from sync.tasks import delete_task_by_media
args = ( str(self.pk), self.thumbnail, ) args = ( str(self.pk), self.thumbnail, )
if not args[1]: if not args[1]:
return return
@ -122,7 +122,6 @@ def copy_thumbnail(self):
def write_nfo_file(self): def write_nfo_file(self):
media = self
if not self.source.write_nfo: if not self.source.write_nfo:
return return
log.info('Writing media NFO file to: {}', self.nfopath) log.info('Writing media NFO file to: {}', self.nfopath)