can load old session
This commit is contained in:
parent
86a48ce9f1
commit
2d7729612b
|
@ -1206,8 +1206,10 @@ class KernelMixConfig(KernelGroupConfig):
|
||||||
storage=None,
|
storage=None,
|
||||||
new=False,
|
new=False,
|
||||||
):
|
):
|
||||||
|
if storage is None:
|
||||||
|
storage = self._storage
|
||||||
if not new:
|
if not new:
|
||||||
if session_id not in [child.impl_getname() for child in self._impl_children]:
|
if session_id not in await list_sessions(storage=storage):
|
||||||
raise ConfigError(_('cannot find existing config with session_id to "{}"').format(session_id))
|
raise ConfigError(_('cannot find existing config with session_id to "{}"').format(session_id))
|
||||||
|
|
||||||
assert type_ in ('config', 'metaconfig', 'mixconfig'), _('unknown type {}').format(type_)
|
assert type_ in ('config', 'metaconfig', 'mixconfig'), _('unknown type {}').format(type_)
|
||||||
|
|
Loading…
Reference in New Issue