Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit ae13bc6

Browse files
Nayef211facebook-github-bot
authored andcommitted
fixed bug with incorrect variable name in dataset_utils.py
Summary: - ValueError was outputting `fn` instead of `func` - Similar fix done in torchdata facebookexternal/torchdata#167 Reviewed By: ejguan Differential Revision: D31149667 fbshipit-source-id: 2c1228287d513895f8359cb97935252f0087d738
1 parent 2930dba commit ae13bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtext/data/datasets_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def decorator(func):
247247
len(argspec.kwonlyargs) == 0 and
248248
len(argspec.annotations) == 0
249249
):
250-
raise ValueError("Internal Error: Given function {} did not adhere to standard signature.".format(fn))
250+
raise ValueError("Internal Error: Given function {} did not adhere to standard signature.".format(func))
251251

252252
@functools.wraps(func)
253253
def wrapper(root=os.path.expanduser('~/.torchtext/cache'), *args, **kwargs):

0 commit comments

Comments
 (0)