Skip to content
Snippets Groups Projects
Commit dfe7f791 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-145: log exception

parent 6e5f3fa5
No related branches found
No related tags found
1 merge request!100Resolve TMSS-145
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
This file contains the serializers (for the elsewhere defined data models) This file contains the serializers (for the elsewhere defined data models)
""" """
import logging
logger = logging.getLogger(__name__)
from rest_framework import serializers from rest_framework import serializers
from .. import models from .. import models
from .specification import RelationalHyperlinkedModelSerializer from .specification import RelationalHyperlinkedModelSerializer
...@@ -159,9 +162,9 @@ class SubtaskSerializerJSONeditorOnline(RelationalHyperlinkedModelSerializer): ...@@ -159,9 +162,9 @@ class SubtaskSerializerJSONeditorOnline(RelationalHyperlinkedModelSerializer):
style={'template': 'josdejong_jsoneditor_widget.html', style={'template': 'josdejong_jsoneditor_widget.html',
'schema': json.dumps(schema)}) 'schema': json.dumps(schema)})
except: except Exception as e:
# todo: Shall we use one of the default templates for the init? # todo: Shall we use one of the default templates for the init?
print('Could not determine schema, hence no fancy JSON form. Expected for list view.') logger.exception('Could not determine schema, hence no fancy JSON form. Expected for list view.')
class Meta: class Meta:
model = models.Subtask model = models.Subtask
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment