|
@@ -13,6 +13,7 @@ TODO: Need to add a test.py for this plugin.
|
|
|
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
+from __future__ import unicode_literals
|
|
from os import path, access, R_OK
|
|
from os import path, access, R_OK
|
|
|
|
|
|
from pelican import signals
|
|
from pelican import signals
|
|
@@ -52,7 +53,7 @@ def content_object_init(instance):
|
|
|
|
|
|
logger.debug('Better Fig. src: %s', src)
|
|
logger.debug('Better Fig. src: %s', src)
|
|
if not (path.isfile(src) and access(src, R_OK)):
|
|
if not (path.isfile(src) and access(src, R_OK)):
|
|
- logger.error('Better Fig. Error: image not found: {}'.format(src))
|
|
|
|
|
|
+ logger.error('Better Fig. Error: image not found: %s', src)
|
|
|
|
|
|
# Open the source image and query dimensions; build style string
|
|
# Open the source image and query dimensions; build style string
|
|
im = Image.open(src)
|
|
im = Image.open(src)
|