Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ def process(git_repo_url, space_destination, user_token):
|
|
37 |
|
38 |
except HfHubHTTPError as e:
|
39 |
# Check if the error is a "Repository Not Found" error
|
40 |
-
if "
|
41 |
-
print("Repository not found.
|
42 |
else:
|
43 |
# Re-raise the exception if it's not a "Repository Not Found" error
|
44 |
raise e
|
|
|
37 |
|
38 |
except HfHubHTTPError as e:
|
39 |
# Check if the error is a "Repository Not Found" error
|
40 |
+
if "404 Client Error" in str(e) and "Repository Not Found" in str(e):
|
41 |
+
print("Repository not found. Maybe we should Create the repository...")
|
42 |
else:
|
43 |
# Re-raise the exception if it's not a "Repository Not Found" error
|
44 |
raise e
|