From 9a7199ca866c02c63e4321d9ba52c013d18d01f1 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 27 Aug 2021 13:30:44 -0400 Subject: Fix typecheck error in architecture.py --- python/architecture.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/architecture.py b/python/architecture.py index 1ca6d9c6..145abe3b 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -615,10 +615,11 @@ class Architecture(metaclass=_ArchitectureMetaClass): else: result[0].branchType[i] = info.branches[i].type result[0].branchTarget[i] = info.branches[i].target - if info.branches[i].arch is None: + arch = info.branches[i].arch + if arch is None: result[0].branchArch[i] = None else: - result[0].branchArch[i] = info.branches[i].arch.handle + result[0].branchArch[i] = arch.handle return True except (KeyError, OSError): log.log_error(traceback.format_exc()) -- cgit v1.3.1