Skip to content

Commit 5a94f08

Browse files
[Bugfix:Plagiarism] Fix missing default tokenization args (#84)
1 parent 77bd41f commit 5a94f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/tokenize_all.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def tokenize(lichen_config_data, my_concatenated_file, my_tokenized_file):
3333
cli_args.append(language_token_data["command_args"][argument]["argument"])
3434
else:
3535
print(f"Error: Unknown tokenization argument {argument}")
36-
else: # Use the default arguments
36+
elif "command_args" in language_token_data: # Use the default arguments if they exist
3737
for argument in language_token_data["command_args"]:
3838
if "default" in language_token_data["command_args"][argument].keys() and\
3939
language_token_data["command_args"][argument]["default"]:

0 commit comments

Comments
 (0)