Skip to content

Commit d948607

Browse files
committed
fix: Nonetype has no len
1 parent 1ca78ae commit d948607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkdocs_embed_file_plugins/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from custom_attributes.plugin import convert_text_attributes
1717

1818

19-
def search_in_file(citation_part: str, contents: str) -> Union[str,None]:
19+
def search_in_file(citation_part: str, contents: str) -> str:
2020
"""
2121
Search a part in the file
2222
Args:
@@ -53,7 +53,7 @@ def search_in_file(citation_part: str, contents: str) -> Union[str,None]:
5353
for i in data:
5454
if citation_part in i.upper():
5555
return i.replace(citation_part, '')
56-
return None
56+
return ''
5757

5858

5959
def mini_ez_links(urlo, base, end, url_whitespace, url_case):

0 commit comments

Comments
 (0)