Skip to content

Commit 8c013a2

Browse files
author
scottstraughan
committed
Fixes 'py/incomplete-url-substring-sanitization' error.
1 parent 70299e9 commit 8c013a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/feeds/ProjectFeed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ def _inject_repository_information(
109109
"""
110110
Using GitHub, GitLab, Other APIs, load in more useful repository information.
111111
"""
112-
if 'github.com' in markdown_file.front_matter['external_url']:
112+
external_url = str(markdown_file.front_matter['external_url'])
113+
114+
if external_url.startswith('https://github.com'):
113115
return self._inject_github_repository_information(
114116
json_feed_item, markdown_file)
115117
elif 'gitlab_project_id' in markdown_file.front_matter:

0 commit comments

Comments
 (0)