Skip to content

Commit 548d2d2

Browse files
authored
fix increase_load_count (#7165)
1 parent b032702 commit 548d2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasets/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def increase_load_count(name: str):
278278
try:
279279
get_session().head(
280280
"/".join((config.S3_DATASETS_BUCKET_PREFIX, name, name + ".py")),
281-
user_agent=get_datasets_user_agent(),
281+
headers={"User-Agent": get_datasets_user_agent()},
282282
timeout=3,
283283
)
284284
except Exception:

0 commit comments

Comments
 (0)