未验证 提交 dff4ff42 编写于 作者: S sneaxiy 提交者: GitHub

fix protobuf update bugs (#51102)

上级 558068cc
......@@ -62,7 +62,8 @@ def assign_configs_value(msg, config):
# LABEL_REPEATED = 3
# LABEL_REQUIRED = 2
if f.label == 3:
getattr(msg, f.name).extend(config[f.name])
if config[f.name] is not None:
getattr(msg, f.name).extend(config[f.name])
elif f.label == 1 or f.label == 2:
setattr(msg, f.name, config[f.name])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册