fffiloni commited on
Commit
664642f
·
verified ·
1 Parent(s): c3373ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 "401 Client Error" in str(e) and "Repository Not Found" in str(e):
41
- print("Repository not found. Creating the repository...")
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