summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dashboard/src/api/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/dashboard/src/api/models.py b/dashboard/src/api/models.py
index cc25f82..a1fedfe 100644
--- a/dashboard/src/api/models.py
+++ b/dashboard/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):