We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 891ea21 + a189406 commit a85317eCopy full SHA for a85317e
django_wtf/core/github_tasks.py
@@ -125,13 +125,13 @@ def index_repository_readme(repo_full_name):
125
)
126
rst_text = b64decode(res.json()["content"]).decode("utf-8")
127
markdown_text = pypandoc.convert_text(rst_text, "md", format="rst")
128
- return
129
except HTTPError as rst_ex:
130
if ex.response.status_code == 404:
131
logging.info(f"{repo_full_name} has no README.rst file")
132
return
133
raise rst_ex
134
- raise ex
+ else:
+ raise ex
135
136
repo = Repository.objects.get(full_name=repo_full_name)
137
repo.readme_html = markdown.markdown(
0 commit comments