Browse Source

Fix a crash that prevented non-GitHub issues from being displayed.

master
poikilos 1 year ago
parent
commit
8eea7b3ee0
  1. 4
      utilities/enissue.py

4
utilities/enissue.py

@ -703,8 +703,8 @@ class Repo:
self.api_id = "Gitea" self.api_id = "Gitea"
if "github.com" in repo_url.lower(): if "github.com" in repo_url.lower():
echo0("WARNING: assuming Gitea but URL has github.com.") echo0("WARNING: assuming Gitea but URL has github.com.")
echo0(" * assuming API is {} for {}" echo0(" * assuming API is {} due to non-GitHub URL {}"
"".format(self.api_id, )) "".format(self.api_id, repo_url))
if self.api_id is None: if self.api_id is None:
raise RuntimeError("api_id is not set") raise RuntimeError("api_id is not set")
api_meta = apis.get(self.api_id) api_meta = apis.get(self.api_id)

Loading…
Cancel
Save