diff options
-rw-r--r-- | src/api/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/api/models.py b/src/api/models.py index cc25f82..a1fedfe 100644 --- a/src/api/models.py +++ b/src/api/models.py @@ -350,7 +350,10 @@ class AccessConfig(TaskConfig): d['access_type'] = self.access_type d['user'] = self.user.id d['revoke'] = self.revoke - d['context'] = json.loads(self.context) + try: + d['context'] = json.loads(self.context) + except: + pass return d def get_delta(self): |