Spaces:
Running
Running
Update app.py
Browse files
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)}")
|