Skip to content

Commit aec4772

Browse files
committed
correct error message
1 parent 5c6b8dc commit aec4772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hepdata_cli/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def find(self, query, keyword=None, ids=None, max_matches=MAX_MATCHES, matches_p
8686
elif format in (set, tuple):
8787
return format(find_results)
8888
else:
89-
raise TypeError(f"Cannot return results in specfied format: {format}. Allowed formats are: {str}, {list}.")
89+
raise TypeError(f"Cannot return results in specfied format: {format}. Allowed formats are: {str}, {list}, {set}, {tuple}.")
9090

9191
def download(self, id_list, file_format=None, ids=None, table_name='', download_dir='./hepdata-downloads'):
9292
"""

0 commit comments

Comments
 (0)