summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/architecture.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/architecture.py b/python/architecture.py
index 2d6fde0f..650f93a1 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -618,7 +618,7 @@ class Architecture(metaclass=_ArchitectureMetaClass):
result[0].branchCount = len(info.branches)
for i in range(0, len(info.branches)):
if isinstance(info.branches[i].type, str):
- result[0].branchType[i] = BranchType[info.branches[i].type]
+ result[0].branchType[i] = BranchType[info.branches[i].type.name]
else:
result[0].branchType[i] = info.branches[i].type
result[0].branchTarget[i] = info.branches[i].target