There was an error while loading. Please reload this page.
1 parent e385792 commit 8d55075Copy full SHA for 8d55075
1 file changed
src/sphinxnotes/strike/__init__.py
@@ -89,7 +89,9 @@ def _is_supported_builder(builder: Builder) -> bool:
89
return True # NOTE: Compatible with version 1.2.
90
91
# a dict of builder name -> dict of node name -> visitor and departure functions
92
- handlers = builder.app.registry.translation_handlers[builder.name]
+ handlers = builder.app.registry.translation_handlers.get(builder.name)
93
+ if handlers is None:
94
+ return False
95
return handlers.get(strike_node.__name__) is not None
96
97
0 commit comments