Skip to content

Commit

Permalink
make sure config is always initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed May 28, 2018
1 parent be30091 commit 695b6cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rasa_nlu/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ class Component(object):
language_list = None

def __init__(self, component_config=None):
if not component_config:
component_config = {}

# makes sure the name of the configuration is part of the config
# this is important for e.g. persistence
component_config["name"] = self.name
Expand Down

0 comments on commit 695b6cf

Please sign in to comment.