[Fix] keep keys (#431)

This commit is contained in:
Tong Gao 2023-09-22 17:30:54 +08:00 committed by GitHub
parent a1ea3c094a
commit 07574fddbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ class BasePartitioner:
tgt_ptr[key] = {}
tgt_ptr = tgt_ptr[key]
tgt_ptr[key_chain[-1]] = ori_ptr[key_chain[-1]]
except AttributeError:
except Exception:
self.logger.warning(f'Key {k} not found in config, ignored.')
tasks = self.partition(models,