aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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