Skip to content

Commit

Permalink
fixed the type-error in download dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
descentis committed Aug 17, 2022
1 parent 0d0ed51 commit c2a4e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kdap/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def download_dataset(self, sitename, **kwargs):
\*\*final_template_list : list[str]
A list of wikipedia article names. Only when template_list is provided as argument
"""
if kwargs['article_list'] is None and kwargs['catgory_list'] is None and kwargs['template_list'] is None:
if sitename != 'stackexchange' and kwargs['article_list'] is None and kwargs['catgory_list'] is None and kwargs['template_list'] is None:
raise TypeError('download_dataset() requires at least one of article_list, category_list or template_list\
arguments to be specified')

Expand Down

0 comments on commit c2a4e6f

Please sign in to comment.