Image model logger refactoring
This commit is contained in:
1 parent
aecd72847c
commit
9bdacb4493
1 file changed
+1
-1
@@ -199,7 +199,7 @@ async def create_image(file: str, sizes: [()], url_fn, output_dir: str) -> Optio
|
|||||||
else:
|
else:
|
||||||
image = await read_image(file)
|
image = await read_image(file)
|
||||||
if not image:
|
if not image:
|
||||||
logger.warning('Failed to process image {}'.format(file))
|
logger.warning(f'Failed to process image {file}')
|
||||||
return None
|
return None
|
||||||
width, height = image.size
|
width, height = image.size
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user