diff --git a/invenio_vocabularies/cli.py b/invenio_vocabularies/cli.py index 24e7b08c..80ccb3eb 100644 --- a/invenio_vocabularies/cli.py +++ b/invenio_vocabularies/cli.py @@ -120,7 +120,7 @@ def _output_process(vocabulary, op, success, errored, filtered): def import_vocab(vocabulary, filepath=None, origin=None, num_samples=None): """Import a vocabulary.""" if not filepath and not origin: - click.secho("One of --filepath or --origin must be present", fg="red") + click.secho("One of --filepath or --origin must be present.", fg="red") exit(1) config = get_config_for_ds(vocabulary, filepath, origin) @@ -137,7 +137,7 @@ def import_vocab(vocabulary, filepath=None, origin=None, num_samples=None): def update(vocabulary, filepath=None, origin=None): """Import a vocabulary.""" if not filepath and not origin: - click.secho("One of --filepath or --origin must be present", fg="red") + click.secho("One of --filepath or --origin must be present.", fg="red") exit(1) config = get_config_for_ds(vocabulary, filepath, origin) @@ -163,7 +163,7 @@ def convert( """Convert a vocabulary to a new format.""" if not filepath and (not origin or not target): click.secho( - "One of --filepath or --origin and --target must be present", + "One of --filepath or --origin and --target must be present.", fg="red" ) exit(1) diff --git a/invenio_vocabularies/contrib/affiliations/schema.py b/invenio_vocabularies/contrib/affiliations/schema.py index 5bc1b5ba..964a264f 100644 --- a/invenio_vocabularies/contrib/affiliations/schema.py +++ b/invenio_vocabularies/contrib/affiliations/schema.py @@ -51,6 +51,6 @@ def validate_affiliation(self, data, **kwargs): if not id_ and not name: raise ValidationError( - _("An existing id or a free text name must be present"), + _("An existing id or a free text name must be present."), "affiliations" ) diff --git a/invenio_vocabularies/contrib/funders/schema.py b/invenio_vocabularies/contrib/funders/schema.py index 7024847b..99582c13 100644 --- a/invenio_vocabularies/contrib/funders/schema.py +++ b/invenio_vocabularies/contrib/funders/schema.py @@ -40,7 +40,7 @@ def validate_funder(self, data, **kwargs): if not id_ and not name: raise ValidationError( - _("An existing id or a free text name must be present"), + _("An existing id or a free text name must be present."), "funder" ) diff --git a/invenio_vocabularies/contrib/subjects/schema.py b/invenio_vocabularies/contrib/subjects/schema.py index 9d651a93..de78c619 100644 --- a/invenio_vocabularies/contrib/subjects/schema.py +++ b/invenio_vocabularies/contrib/subjects/schema.py @@ -45,6 +45,6 @@ def validate_subject(self, data, **kwargs): if not id_ and not subject: raise ValidationError( - _("An existing id or a free text subject must be present"), + _("An existing id or a free text subject must be present."), "subjects" )