From e762dd1e748457c09ce4ac942f09e585f53d64e2 Mon Sep 17 00:00:00 2001 From: marojenka Date: Sun, 15 Apr 2018 20:17:01 +0300 Subject: [PATCH] Fix log statment -- Use __mod__ over format style (#190) --- stdimage/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdimage/models.py b/stdimage/models.py index 638338f..6be0cf1 100644 --- a/stdimage/models.py +++ b/stdimage/models.py @@ -62,10 +62,10 @@ def render_variation(cls, file_name, variation, replace=False, if storage.exists(variation_name): if replace: storage.delete(variation_name) - logger.info('File "{}" already exists and has been replaced.', + logger.info('File "%s" already exists and has been replaced.', variation_name) else: - logger.info('File "{}" already exists.', variation_name) + logger.info('File "%s" already exists.', variation_name) return variation_name ImageFile.LOAD_TRUNCATED_IMAGES = True