From dcc7d34fc601cccaeb60f69791445ab5e4bc0fb8 Mon Sep 17 00:00:00 2001 From: kdavis-mozilla Date: Mon, 28 Jan 2019 14:07:46 +0100 Subject: [PATCH] issubset is in set not list --- src/corporacreator/corpora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corporacreator/corpora.py b/src/corporacreator/corpora.py index 8226c05..7e8f7c1 100644 --- a/src/corporacreator/corpora.py +++ b/src/corporacreator/corpora.py @@ -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")