Skip to content

Commit

Permalink
fix: skip Super notes that fail to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Jan 5, 2025
1 parent 569acaf commit bc25e09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/formats/standard_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,11 @@ def convert(self, file_or_folder: Path):
note_imf.body = item["content"]["text"]
case "super":
super_converter = SuperToMarkdown()
note_imf.body = super_converter.convert(item["content"]["text"])
try:
note_imf.body = super_converter.convert(item["content"]["text"])
except json.JSONDecodeError as e:
self.logger.warn(f"Skipping Super Note '{title}' due to JSON parse error: {e}");
continue
case _:
note_imf.body = item["content"]["text"]
self.logger.debug(
Expand Down

0 comments on commit bc25e09

Please sign in to comment.