diff options
-rw-r--r-- | pyfirstaidkit/plugins.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pyfirstaidkit/plugins.py b/pyfirstaidkit/plugins.py index c0f1361..5b95dfa 100644 --- a/pyfirstaidkit/plugins.py +++ b/pyfirstaidkit/plugins.py @@ -40,8 +40,11 @@ class Flow(dict): dict.__init__(self, rules, *args, **kwargs) @staticmethod - def init(parent): - flows = deepcopy(parent.flows) + def init(parent = None): + if parent: + flows = deepcopy(parent.flows) + else: + flows = dict() return flows class Plugin(object): |