Skip to content

Commit

Permalink
Merge pull request #1728 from RasaHQ/fix-url-0.14
Browse files Browse the repository at this point in the history
Fix url 0.14
  • Loading branch information
Ghostvv committed Feb 25, 2019
2 parents 55cf061 + 4266f30 commit 5223838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rasa_nlu/train.py
Expand Up @@ -180,6 +180,6 @@ def do_train(cfg, # type: RasaNLUModelConfig
cmdline_args.project,
cmdline_args.fixed_model_name,
cmdline_args.storage,
data_endpoint=data_endpoint,
training_data_endpoint=data_endpoint,
num_threads=cmdline_args.num_threads)
logger.info("Finished training")
3 changes: 2 additions & 1 deletion rasa_nlu/utils/__init__.py
Expand Up @@ -91,7 +91,8 @@ def list_directory(path):
implementation returning files in any depth of the path."""

if not isinstance(path, six.string_types):
raise ValueError("Resourcename must be a string type")
raise ValueError("`resource_name` must be a string type. "
"Got `{}` instead".format(type(path)))

if os.path.isfile(path):
return [path]
Expand Down

0 comments on commit 5223838

Please sign in to comment.