Skip to content

Commit aa00c58

Browse files
committed
fix
1 parent d2f26b5 commit aa00c58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

checkers/base_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class CheckerResult:
2121

2222
def update_from_other(self, other):
2323
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:
24+
if hasattr(second_obj, attribute_name):
25+
second_val = getattr(second_obj, attribute_name)
2626
setattr(first_obj, attribute_name, second_val)
2727

2828
set_attr_if_is_not_none('ipv4', self, other)

0 commit comments

Comments
 (0)