Skip to content

Commit 3dde94f

Browse files
committed
Fix skip condition
1 parent bfdec07 commit 3dde94f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxnotes/snippet/picker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def pick(doctree:nodes.document) -> List[Tuple[Snippet,nodes.section]]:
2626
Pick snippets from document, return a list of snippet and the section
2727
it belongs to.
2828
"""
29-
if doctree.source is None or doctree.source == "":
29+
if doctree.source == "":
3030
logger.debug('Skipped document with empty source')
3131
return []
3232

0 commit comments

Comments
 (0)