Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bibtexparser/splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ def split(self, library: Optional[Library] = None) -> Library:
f"due to syntactical error in bibtex:\n {e.abort_reason}"
)
logger.info(
"We will try to continue parsing, but this might lead to unexpected results."
"The failed block will be stored in the `failed_blocks`of the library."
"We will try to continue parsing, but this might lead to unexpected results. "
"The failed block will be stored in the `failed_blocks` of the library."
)
library.add(
ParsingFailedBlock(
Expand All @@ -308,14 +308,14 @@ def split(self, library: Optional[Library] = None) -> Library:
"python-bibtexparser detected an invalid state. Please report this bug."
)
logger.error(e.message)
raise e
except Exception as e:
raise
except Exception:
# For unknown exceptions, we want to fail hard and get the info in our issue tracker.
logger.error(
f"Unexpected exception while parsing `{m_val}` block (line {start_line})"
f"Unexpected exception while parsing `{m_val}` block (line {start_line}). "
"Please report this bug."
)
raise e
raise

self._reset_block_status(current_char_index=self._current_char_index + 1)
else:
Expand Down
Loading