From 0041d18a2c5be586c6a5112953c95b0d6bc25525 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 3 Mar 2017 00:55:06 +0530 Subject: [PATCH] News download: Fix a bug that could cause a crash when downloading an SVG image. Fixes #1669530 [Fetching News for "New York Times" produces error](https://bugs.launchpad.net/calibre/+bug/1669530) See https://bugreports.qt.io/browse/QTBUG-59266 --- src/calibre/web/fetch/simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/web/fetch/simple.py b/src/calibre/web/fetch/simple.py index 2d27534ab9..214088841f 100644 --- a/src/calibre/web/fetch/simple.py +++ b/src/calibre/web/fetch/simple.py @@ -397,7 +397,7 @@ class RecursiveFetcher(object): if isinstance(fname, unicode): fname = fname.encode('ascii', 'replace') itype = what(None, data) - if itype is None and b'