Commit dfe7f791 authored by Jorrit Schaap's avatar Jorrit Schaap

TMSS-145: log exception

parent 6e5f3fa5
......@@ -2,6 +2,9 @@
This file contains the serializers (for the elsewhere defined data models)
"""
import logging
logger = logging.getLogger(__name__)
from rest_framework import serializers
from .. import models
from .specification import RelationalHyperlinkedModelSerializer
......@@ -159,9 +162,9 @@ class SubtaskSerializerJSONeditorOnline(RelationalHyperlinkedModelSerializer):
style={'template': 'josdejong_jsoneditor_widget.html',
'schema': json.dumps(schema)})
except:
except Exception as e:
# 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:
model = models.Subtask
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment