Add exception type for try catch of api method

This commit is contained in:
Nikolay Ogorov 2020-12-22 18:35:44 +03:00
parent 8de4cbbf50
commit 437fae465d

View File

@ -80,7 +80,7 @@ class UserConfigViewSet(ViewSet):
for item in request.data.items():
try:
parsed_dict[item[0]] = json.loads(item[1])
except:
except ValueErrror as e:
parsed_dict[item[0]] = item[1]
userconfig = self.get_queryset().first()