Skip to content

Commit

Permalink
Fix lint, don't use except without exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Oct 24, 2017
1 parent 1eef005 commit 89f008e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get_image_from_uri(cache, url_fetcher, url, forced_mime_type=None):
'the only image formats available.')
try:
image = SVGImage(string, url, url_fetcher)
except:
except BaseException:
try:
surface, format_name = (
pixbuf.decode_to_image_surface(string))
Expand Down

0 comments on commit 89f008e

Please sign in to comment.