aboutsummaryrefslogtreecommitdiff
path: root/anki-card-template
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 23:19:13 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 23:19:13 +0200
commit075b12d89ac3119a211c93059047054020b0efdf (patch)
tree43cb59da7ca2d5a37557fa52e1a07ab17a3b94d4 /anki-card-template
parentd0e334ca8567da06f11cac7a44696796a6dc06db (diff)
fix bugHEADmaster
Diffstat (limited to 'anki-card-template')
-rwxr-xr-xanki-card-template/bulk-cleanup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/anki-card-template/bulk-cleanup.py b/anki-card-template/bulk-cleanup.py
index f123cf6..797bcf8 100755
--- a/anki-card-template/bulk-cleanup.py
+++ b/anki-card-template/bulk-cleanup.py
@@ -26,7 +26,7 @@ def recurseplainify(soup):
output += f"*{recurseplainify(el)}*"
continue
- if el.name == 'ruby' and len(el.text) > 0:
+ if el.name == 'ruby' and len(el.text) > 0 and el.rt is not None:
output += f'[{el.text}]({el.rt.text})'
continue