diff --git a/bibtexparser/entrypoint.py b/bibtexparser/entrypoint.py index 3024784..bce3171 100644 --- a/bibtexparser/entrypoint.py +++ b/bibtexparser/entrypoint.py @@ -20,9 +20,9 @@ def _build_parse_stack( ) -> List[Middleware]: if parse_stack is not None and append_middleware is not None: raise ValueError( - "Provided both parse_stack and append_middleware." - "Only one should be provided." - "(append_middleware should only be used with the default parse_stack," + "Provided both parse_stack and append_middleware. " + "Only one should be provided. " + "(append_middleware should only be used with the default parse_stack, " "i.e., when the passed parse_stack is None.)" ) @@ -50,10 +50,10 @@ def _build_unparse_stack( ) -> List[Middleware]: if unparse_stack is not None and prepend_middleware is not None: raise ValueError( - "Provided both parse_stack and append_middleware." - "Only one should be provided." - "(prepend_middleware should only be used with the default parse_stack," - "i.e., when the passed parse_stack is None.)" + "Provided both unparse_stack and prepend_middleware. " + "Only one should be provided. " + "(prepend_middleware should only be used with the default unparse_stack, " + "i.e., when the passed unparse_stack is None.)" ) if unparse_stack is None: diff --git a/bibtexparser/middlewares/names.py b/bibtexparser/middlewares/names.py index e0a3d0f..7bb0bdd 100644 --- a/bibtexparser/middlewares/names.py +++ b/bibtexparser/middlewares/names.py @@ -164,8 +164,8 @@ def _transform_field_value(self, name) -> List[NameParts]: if not isinstance(name, list): raise ValueError( "Expected a list of strings, got {}. " - "Make sure to use `SeparateCoAuthors` middleware" - "before using `SplitNameParts` middleware".format(name) + "Make sure to use `SeparateCoAuthors` middleware " + "before using `SplitNameParts` middleware.".format(name) ) return [parse_single_name_into_parts(n) for n in name]