Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
jsonschema
Commits
e25f4e6af0bb
Commit
e1257141
authored
Mar 19, 2018
by
Denis Laxalde
Browse files
Fix missing formatting argument in ValueError message
parent
b5a22b9b39cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_jsonschema/mappers/collection.py
View file @
e25f4e6a
...
...
@@ -213,7 +213,8 @@ class CollectionItemMapper(JSONSchemaMapper):
"title" properties.
"""
if
schema_role
==
CREATION_ROLE
:
raise
ValueError
(
'{} is not appropriate for submission role'
)
raise
ValueError
(
'{} is not appropriate for submission role'
.
format
(
self
))
schema
=
{
'type'
:
'object'
,
'properties'
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment