diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-08-27 13:30:44 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:43 -0400 |
| commit | 9a7199ca866c02c63e4321d9ba52c013d18d01f1 (patch) | |
| tree | e1a2b8abd05a82abf6742f1be13283a4a595c999 /python | |
| parent | d08a7fc995481cda959a9d9a22f44e94e5c599ba (diff) | |
Fix typecheck error in architecture.py
Diffstat (limited to 'python')
| -rw-r--r-- | python/architecture.py | 5 |
1 files changed, 3 insertions, 2 deletions
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()) |
