From a1aa056df2485e8b141954d10076b151e754c5b9 Mon Sep 17 00:00:00 2001 From: Craig <3979063+craig8@users.noreply.github.com> Date: Mon, 6 May 2024 13:36:31 -0700 Subject: [PATCH] Update admin_endpoints.py Handle behavior of removing PersistentDict --- volttron/platform/web/admin_endpoints.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/volttron/platform/web/admin_endpoints.py b/volttron/platform/web/admin_endpoints.py index 4864b0f105..d307b2f353 100644 --- a/volttron/platform/web/admin_endpoints.py +++ b/volttron/platform/web/admin_endpoints.py @@ -101,6 +101,8 @@ def reload_userdict(self): self._userdict = jsonapi.loads(fp.read()) except json.decoder.JSONDecodeError: self._userdict = {} + # Keep same behavior as with PersistentDict + raise ValueError("File not in a supported format") def get_routes(self): """