Skip to content

Commit

Permalink
Update _errors.py (huggingface#2354)
Browse files Browse the repository at this point in the history
  • Loading branch information
qgallouedec authored and MoritzLaurer committed Jul 3, 2024
1 parent ae4fed1 commit c282c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/huggingface_hub/utils/_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def hf_raise_for_status(response: Response, endpoint_name: Optional[str] = None)
message = (
f"\n\n{response.status_code} Forbidden: {error_message}."
+ f"\nCannot access content at: {response.url}."
+ "\nIf you are trying to create or update content,"
+ "\nIf you are trying to create or update content, "
+ "make sure you have a token with the `write` role."
)
raise HfHubHTTPError(message, response=response) from e
Expand Down

0 comments on commit c282c95

Please sign in to comment.