Skip to content
Snippets Groups Projects
Commit cc24d125 authored by Nathaniel Kofalt's avatar Nathaniel Kofalt Committed by GitHub
Browse files

Merge pull request #945 from scitran/singularize-container-reference

Ensure ContainerReference types are singular
parents 124ea0c4 ae6603d5
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,8 @@ class ContainerReference(object):
# TODO: refactor to resolve pylint warning
def __init__(self, type, id):
type = singularize(type)
if type not in CONT_TYPES:
raise Exception('Container type must be one of {}'.format(CONT_TYPES))
......
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