Skip to content

Commit 1665a1b

Browse files
committed
no double backticks
1 parent 15ec1d0 commit 1665a1b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/datasets/arrow_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4073,7 +4073,7 @@ def _push_parquet_shards_to_hub(
40734073

40744074
if token is None:
40754075
raise OSError(
4076-
"You need to provide a `token` or be logged in to Hugging Face with " "`huggingface-cli login`."
4076+
"You need to provide a `token` or be logged in to Hugging Face with `huggingface-cli login`."
40774077
)
40784078

40794079
if split is None:

src/datasets/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ def dataset_module_factory(
11611161
msg = msg + f" at revision '{revision}'" if revision else msg
11621162
raise FileNotFoundError(
11631163
msg
1164-
+ ". If the repo is private, make sure you are authenticated with ``use_auth_token=True`` after logging in with ``huggingface-cli login```."
1164+
+ ". If the repo is private, make sure you are authenticated with `use_auth_token=True` after logging in with `huggingface-cli login`."
11651165
)
11661166
else:
11671167
raise e

src/datasets/utils/file_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def get_from_cache(
509509
logger.info(f"Couldn't get ETag version for url {url}")
510510
elif response.status_code == 401 and config.HF_ENDPOINT in url and use_auth_token is None:
511511
raise ConnectionError(
512-
f"Unauthorized for URL {url}. Please use the parameter ``use_auth_token=True`` after logging in with ``huggingface-cli login``"
512+
f"Unauthorized for URL {url}. Please use the parameter `use_auth_token=True` after logging in with `huggingface-cli login`"
513513
)
514514
except (OSError, requests.exceptions.Timeout) as e:
515515
# not connected

0 commit comments

Comments
 (0)