Skip to content
Permalink
Browse files

fix(encoder): fix bug for encoder bin load

  • Loading branch information...
Larryjianfeng committed Jul 22, 2019
1 parent e9295ea commit 973672ef7041d9a04ea77694e503a5e5c419bde0
Showing with 1 addition and 1 deletion.
  1. +1 −1 gnes/base/__init__.py
@@ -292,7 +292,7 @@ def _get_instance_from_yaml(cls, constructor, node, stop_on_import_error=False):
data = ruamel.yaml.constructor.SafeConstructor.construct_mapping(
constructor, node, deep=True)

dump_path = cls._get_dump_path_from_config(data)
dump_path = cls._get_dump_path_from_config(data.get('gnes_config', {}))
if dump_path:
obj = cls.load(dump_path)
obj.logger.info('restore %s from %s' % (cls.__name__, dump_path))

0 comments on commit 973672e

Please sign in to comment.
You can’t perform that action at this time.