From 9aa0e2ac6e87df50433fdb699f4ece27f6415cee Mon Sep 17 00:00:00 2001 From: pseusys Date: Tue, 28 Feb 2023 23:38:02 +0100 Subject: [PATCH] github object not found error fixed --- sources/manager_github.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/manager_github.py b/sources/manager_github.py index 8bff82a..2ec6a1f 100644 --- a/sources/manager_github.py +++ b/sources/manager_github.py @@ -138,7 +138,6 @@ class GitHubManager: if not EM.DEBUG_RUN: DBM.i("Pushing chart to repo...") - chart_path = f"https://raw.githubusercontent.com/{GitHubManager.USER.login}/{GitHubManager.USER.login}/{GitHubManager.branch()}/{chart_path}" try: contents = GitHubManager.REPO.get_contents(chart_path) @@ -147,6 +146,8 @@ class GitHubManager: except UnknownObjectException: GitHubManager.REPO.create_file(chart_path, "Charts Added", data, committer=GitHubManager._get_author()) DBM.g("Lines of code chart created!") + + chart_path = f"https://raw.githubusercontent.com/{GitHubManager.USER.login}/{GitHubManager.USER.login}/{GitHubManager.branch()}/{chart_path}" return f"**{FM.t('Timeline')}**\n\n![Lines of Code chart]({chart_path})\n\n" else: