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 19, 2021
1 parent fe84c40 commit e44a7f3
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 @@ -664,6 +664,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 e44a7f3

Please sign in to comment.