Skip to content

Commit

Permalink
Don't warn when drawing empty SVG files
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Feb 26, 2016
1 parent 13fde51 commit 777ca82
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions weasyprint/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,6 @@ def draw(self, context, concrete_width, concrete_height, _image_rendering):
concrete_width / svg.width, concrete_height / svg.height)
context.set_source_surface(svg.cairo)
context.paint()
else:
LOGGER.warning(
'Trying to draw an SVG image at %s'
'with width or height equal to 0' % self._base_url)
except Exception as e:
LOGGER.warning(
'Failed to draw an SVG image at %s : %s', self._base_url, e)
Expand Down

0 comments on commit 777ca82

Please sign in to comment.