Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ricwo committed Jan 2, 2019
1 parent 045489f commit b9987db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rasa_core/policies/ensemble.py
Expand Up @@ -188,13 +188,12 @@ def _ensure_loaded_policy(cls, policy, policy_cls, policy_name: Text):
if policy is None:
raise Exception(
"Failed to load policy {}: "
"load returned None"
.format(policy_name))
"load returned None".format(policy_name))
elif not isinstance(policy, policy_cls):
raise Exception(
"Failed to load policy {}: "
"load returned object that is not instance of its own class"
.format(policy_name))
"".format(policy_name))

@classmethod
def load(cls, path: Text) -> 'PolicyEnsemble':
Expand Down

0 comments on commit b9987db

Please sign in to comment.