Skip to content

Uncaught calls to the resolver make the server crash #92

@MrGecko

Description

@MrGecko

Uncaught calls to the resolver make the server crash instead of returning meaningful http codes

image

def r_dts_document(self, objectId=None, passageId=None, start=None, end=None):
if not objectId:
raise CtsMissingParameter("A document 'id' is required")
passageId, objectId = _define_passage_id_from_params(objectId, passageId, start, end)
passage = self.resolver.getTextualNode(
textId=objectId,
subreference=passageId
)

This seems limited to this particular method as errors are caught in the other ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions