You've already forked wakapi-readme-stats
Merge pull request #404 from anmol098/fix/github_object_not_found_402
GitHub object not found error fixed
This commit is contained in:
@@ -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\n\n"
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user