From 6731295f3298fab68a7e9609ffc54f6a33ac26b6 Mon Sep 17 00:00:00 2001 From: Brandon Doornbos <41441504+brandon-doornbos@users.noreply.github.com> Date: Wed, 3 Jun 2026 23:34:24 +0200 Subject: [PATCH] Only create list if we want WOPI --- copyparty/httpsrv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/httpsrv.py b/copyparty/httpsrv.py index 25093622..8e062d76 100644 --- a/copyparty/httpsrv.py +++ b/copyparty/httpsrv.py @@ -242,7 +242,8 @@ class HttpSrv(object): if (HAVE_PIL or HAVE_VIPS or HAVE_FFMPEG) and not self.args.no_thumb: Daemon(self.post_init, "hsrv-init2") - self.wopi_files: dict[str, str] = {} + if self.args.wopi: + self.wopi_files: dict[str, str] = {} def post_init(self) -> None: try: