Skip to content

Commit a189406

Browse files
committed
fix: readme rst parrsing task
1 parent 891ea21 commit a189406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_wtf/core/github_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ def index_repository_readme(repo_full_name):
125125
)
126126
rst_text = b64decode(res.json()["content"]).decode("utf-8")
127127
markdown_text = pypandoc.convert_text(rst_text, "md", format="rst")
128-
return
129128
except HTTPError as rst_ex:
130129
if ex.response.status_code == 404:
131130
logging.info(f"{repo_full_name} has no README.rst file")
132131
return
133132
raise rst_ex
134-
raise ex
133+
else:
134+
raise ex
135135

136136
repo = Repository.objects.get(full_name=repo_full_name)
137137
repo.readme_html = markdown.markdown(

0 commit comments

Comments
 (0)