mirror of https://github.com/jumpserver/jumpserver
fix: 解决migrate文件中迁移数据会触发信号导致字段不对应错误引发迁移失败问题
parent
a991a6c56c
commit
71ccfe66ec
|
@ -72,7 +72,12 @@ class OperatorLogHandler(metaclass=Singleton):
|
|||
if instance_id is None:
|
||||
return log_id, before, after
|
||||
|
||||
log_id, cache_instance = self.get_instance_dict_from_cache(instance_id)
|
||||
try:
|
||||
log_id, cache_instance = self.get_instance_dict_from_cache(instance_id)
|
||||
except Exception as err:
|
||||
logger.error('Get instance diff from cache error: %s' % err)
|
||||
return log_id, before, after
|
||||
|
||||
if not cache_instance:
|
||||
return log_id, before, after
|
||||
|
||||
|
|
Loading…
Reference in New Issue