kavansaun commited on
Commit
76e1887
·
verified ·
1 Parent(s): 095d7de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -51,6 +51,9 @@ def update_github_log(uid):
51
  if "bad_credentials" in error_msg or "bad credentials" in error_msg:
52
  print("The GitHub API Key provided is invalid.")
53
  gr.Warning("The GitHub API Key provided is invalid.")
 
 
 
54
  else:
55
  print("GitHub update failed:", e)
56
  gr.Warning(f"{str(e)}")
 
51
  if "bad_credentials" in error_msg or "bad credentials" in error_msg:
52
  print("The GitHub API Key provided is invalid.")
53
  gr.Warning("The GitHub API Key provided is invalid.")
54
+ elif "repository" in error_msg:
55
+ print("Repo not found, Possible incorrect Repository name")
56
+ gr.Warning("Repo not found, Possible incorrect Repository name")
57
  else:
58
  print("GitHub update failed:", e)
59
  gr.Warning(f"{str(e)}")