From 5478dbfb00cbf38c8fbdad70fe6128d530ae347a Mon Sep 17 00:00:00 2001 From: tcely Date: Mon, 9 Jun 2025 10:56:29 -0400 Subject: [PATCH] Use f-string for logged messages --- tubesync/sync/models/media__tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tubesync/sync/models/media__tasks.py b/tubesync/sync/models/media__tasks.py index d0397f84..06aa46b2 100644 --- a/tubesync/sync/models/media__tasks.py +++ b/tubesync/sync/models/media__tasks.py @@ -113,9 +113,9 @@ def copy_thumbnail(self): if not self.thumb_file_exists: return log.info( - 'Copying media thumbnail from: {} to: {}', - self.thumb.path, - self.thumbpath, + 'Copying media thumbnail' + f' from: {self.thumb.path}' + f' to: {self.thumbpath}' ) # copyfile returns the destination, so we may as well pass that along return copyfile(self.thumb.path, self.thumbpath) @@ -124,7 +124,7 @@ def copy_thumbnail(self): def write_nfo_file(self): if not self.source.write_nfo: return - log.info('Writing media NFO file to: {}', self.nfopath) + log.info(f'Writing media NFO file to: {self.nfopath}') try: # write_text_file returns bytes written return write_text_file(self.nfopath, self.nfoxml)