From f234042b3ad9019c82b1cc37d33ea727e39e0a5c Mon Sep 17 00:00:00 2001 From: Tim Kreuzer <t.kreuzer@fz-juelich.de> Date: Fri, 21 Mar 2025 09:51:49 +0100 Subject: [PATCH] Use new events structure from forwardbasespawner --- unicorespawner/api_notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unicorespawner/api_notifications.py b/unicorespawner/api_notifications.py index 7959334..5ce3d3c 100644 --- a/unicorespawner/api_notifications.py +++ b/unicorespawner/api_notifications.py @@ -103,7 +103,8 @@ class SpawnEventsUnicoreAPIHandler(APIHandler): "progress": progress, "html_message": f"<details><summary>{now}: {summary}</summary>{details}</details>", } - spawner.latest_events.append(event) + if hasattr(spawner, "events") and type(spawner.events) == list: + spawner.events.append(event) self.set_status(200) -- GitLab