From af8c54d63bd0d08ea59150cf4588a524bf93ab51 Mon Sep 17 00:00:00 2001 From: Juho Inkinen Date: Mon, 23 Sep 2019 16:33:00 +0300 Subject: [PATCH] Avoid Scrutinizer issue about undef var for execution paths --- annif/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annif/cli.py b/annif/cli.py index 2c13dbc6d..9156d617a 100644 --- a/annif/cli.py +++ b/annif/cli.py @@ -51,7 +51,7 @@ def open_doc_path(path): docs = open_doc_path(os.path.devnull) elif len(paths) == 1: docs = open_doc_path(paths[0]) - elif len(paths) > 1: + else: corpora = [open_doc_path(path) for path in paths] docs = annif.corpus.CombinedCorpus(corpora) return docs