Skip to content

Commit

Permalink
Don't crash on empty path
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdapretnar committed Jul 13, 2021
1 parent 3da9168 commit 650ebac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orangecontrib/text/widgets/owimportdocuments.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,8 @@ def __onReportProgress(self, arg):
def add_features(self):
self.Warning.clear()
lemma, pos, ner = self.lemma_cb, self.pos_cb, self.ner_cb
if self.corpus is None:
return
self.corpus = self.base_corpus.copy()
if lemma:
self.corpus.store_tokens(self.tokens)
Expand Down

0 comments on commit 650ebac

Please sign in to comment.