Avoid unset var repo in gitea process
This commit is contained in:
@@ -716,7 +716,10 @@ def process_gitea(conf, one_shot, domain_cache):
|
|||||||
log.debug("Could not resolve tag '%s' for %s/%s; keeping tag URL", tag_name, owner, repo)
|
log.debug("Could not resolve tag '%s' for %s/%s; keeping tag URL", tag_name, owner, repo)
|
||||||
except Exception:
|
except Exception:
|
||||||
log.exception("Error upgrading tag-only entry to a commit/compare diff")
|
log.exception("Error upgrading tag-only entry to a commit/compare diff")
|
||||||
|
|
||||||
|
#Make sure repo is set in some way:
|
||||||
|
if ! repo:
|
||||||
|
repo = ''
|
||||||
# Clean author & title; extract commit message
|
# Clean author & title; extract commit message
|
||||||
author = clean_author(author_raw)
|
author = clean_author(author_raw)
|
||||||
title_text = text_only(title_html)
|
title_text = text_only(title_html)
|
||||||
@@ -1205,4 +1208,4 @@ def main():
|
|||||||
time.sleep(max(1, sleep_sec - elapsed))
|
time.sleep(max(1, sleep_sec - elapsed))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
Reference in New Issue
Block a user