From c92ca400267baee2cf2944131e12f6414d870a1a Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 19 Mar 2024 13:56:43 +0100 Subject: [PATCH] Fix code style/flake8 issue --- src/pretix/helpers/thumb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/helpers/thumb.py b/src/pretix/helpers/thumb.py index 94a6c42676..7ff9af946c 100644 --- a/src/pretix/helpers/thumb.py +++ b/src/pretix/helpers/thumb.py @@ -189,7 +189,7 @@ def create_thumbnail(source, size, formats=None): # Yields better file sizes for photos target_ext = 'jpeg' quality = 95 - elif source_ext =='.gif' or source_ext == '.png': + elif source_ext == '.gif' or source_ext == '.png': target_ext = source_name.lower()[-3:] quality = None image_out.info = image.info