From 1733c0bdd636a17442b27448893e3c3b73761a66 Mon Sep 17 00:00:00 2001 From: hduelme Date: Sun, 5 Jan 2025 16:32:44 +0100 Subject: [PATCH] Prevent preview of unsaved image --- usr/lib/webapp-manager/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/webapp-manager/common.py b/usr/lib/webapp-manager/common.py index 9d815e0..96025ea 100644 --- a/usr/lib/webapp-manager/common.py +++ b/usr/lib/webapp-manager/common.py @@ -536,8 +536,8 @@ def download_favicon(url): image = download_image(root_url, link) if image is not None: t = tempfile.NamedTemporaryFile(suffix=".png", delete=False) - images.append([iconformat, image, t.name]) image.save(t.name) + images.append([iconformat, image, t.name]) except Exception as e: print(e)