Skip to content

Commit

Permalink
Merge pull request #60 from mozilla/issue59
Browse files Browse the repository at this point in the history
issubset is in set not list
  • Loading branch information
kdavis-mozilla authored Jan 28, 2019
2 parents f92fe7b + dcc7d34 commit 1da027b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corporacreator/corpora.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create(self):
if self.args.langs:
# check if all languages provided at command line are actually
# in the clips.tsv file, if not, throw error
if self.args.langs.issubset(corpora_data.locale.unique()):
if set(self.args.langs).issubset(set(corpora_data.locale.unique())):
locales = self.args.langs
else:
raise argparse.ArgumentTypeError("ERROR: You have requested languages which do not exist in clips.tsv")
Expand Down

0 comments on commit 1da027b

Please sign in to comment.