summaryrefslogtreecommitdiff
path: root/sphinx/writers/html5.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/writers/html5.py')
-rw-r--r--sphinx/writers/html5.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py
index f8b22de27..6fe9b62fd 100644
--- a/sphinx/writers/html5.py
+++ b/sphinx/writers/html5.py
@@ -574,8 +574,10 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
if not ('width' in node and 'height' in node):
size = get_image_size(os.path.join(self.builder.srcdir, olduri))
if size is None:
- logger.warning(__('Could not obtain image size. :scale: option is ignored.'), # NOQA
- location=node)
+ logger.warning(
+ __('Could not obtain image size. :scale: option is ignored.'),
+ location=node,
+ )
else:
if 'width' not in node:
node['width'] = str(size[0])