Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
get_loaded_model
to succeed when $LOAD_PATH
contains non-st…
…ring values (ctran#848) As currently implemented, `get_loaded_model` inspects the `$LOAD_PATH` global for path values when trying to find the path for a model file. This would be fine, except that variable is affected by userspace, which means that it will sometimes contain non-string values, often Pathnames. To avoid responding with the error `Unable to annotate #{model_path}: no implicit conversion of Pathname into String` in this situation, we simply add an explicit `to_s` call before performing string-specific operations. Fixes ctran#758
- Loading branch information