X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/4e329824f40367945de11d3647396859092f5c2c..6158510771a90d29d0d4eddb311bed6ae367ecf9:/librarian/cover.py diff --git a/librarian/cover.py b/librarian/cover.py index 09c8071..c32751d 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -305,7 +305,7 @@ class WLCover(Cover): bg_src = None if bg_src is None: bg_src = URLOpener().open(url) - self.background_img = StringIO(bg_src.read()) + self.background_img = BytesIO(bg_src.read()) bg_src.close() def pretty_author(self):