From: Jan Szejko Date: Wed, 1 Mar 2017 11:16:22 +0000 (+0100) Subject: allow svg, but not tiff X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/8287173da88bfaa3a8b90a39768198dceba2e25f?hp=30a74b436b8a81adbdbeea5a9b2f99dfc2e4949f allow svg, but not tiff --- diff --git a/librarian/formats/cover/evens/__init__.py b/librarian/formats/cover/evens/__init__.py index 003807d..9081464 100644 --- a/librarian/formats/cover/evens/__init__.py +++ b/librarian/formats/cover/evens/__init__.py @@ -28,7 +28,7 @@ class EvensCover(Cover): cover_url = ctx.files_path + urllib.quote(cover_url[7:]) IMG_EXT = ('png', 'jpg', 'jpeg', 'gif') if '.' not in cover_url or cover_url.rsplit('.', 1)[1].lower() not in IMG_EXT: - raise BuildError('Wrong cover format, should be PNG, JPG or GIF') + raise BuildError('Wrong cover format, should be PNG, JPG, GIF or SVG') try: self.background_img = urlopen(cover_url) except URLError: