Skip to content

Commit

Permalink
Update admin_endpoints.py
Browse files Browse the repository at this point in the history
Handle behavior of removing PersistentDict
  • Loading branch information
craig8 authored May 6, 2024
1 parent 6327b11 commit a1aa056
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions volttron/platform/web/admin_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit a1aa056

Please sign in to comment.