We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f26b5 commit aa00c58Copy full SHA for aa00c58
checkers/base_checker.py
@@ -21,8 +21,8 @@ class CheckerResult:
21
22
def update_from_other(self, other):
23
def set_attr_if_is_not_none(attribute_name, first_obj, second_obj):
24
- second_val = getattr(second_obj, attribute_name)
25
- if second_val is not None:
+ if hasattr(second_obj, attribute_name):
+ second_val = getattr(second_obj, attribute_name)
26
setattr(first_obj, attribute_name, second_val)
27
28
set_attr_if_is_not_none('ipv4', self, other)
0 commit comments