Skip to content

Commit

Permalink
should look for list
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Nov 4, 2021
1 parent cccdaa6 commit 8ed4574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symbolator/corpus/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def load(self, content):
Given a json dump of a corpus (and system libraries) load into corpora
"""
# If it isn't already loaded!
if not isinstance(content, dict):
if not isinstance(content, list):
if not os.path.exists(content):
sys.exit("%s for loading corpora does not exist." % content)
content = read_json(content)
Expand Down

0 comments on commit 8ed4574

Please sign in to comment.