# HG changeset patch # User Milka Kuzminski # Date 2021-04-14 06:38:10 # Node ID a287ef57c8c1bf5c826f73ce1dd056e52e982ab0 # Parent 67a8ce6a769d096c066cde97408d3a29817b59ff users: make user data loading more resilient to errors. diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -911,7 +911,7 @@ class User(Base, BaseModel): return {} try: - return json.loads(self._user_data) + return json.loads(self._user_data) or {} except TypeError: return {}