Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion f90wrap/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,13 @@ def add_external_packages(root, class_names, external_packages):
module.is_external = True
for typ in mod["types"]:
new_type = Type(name=typ["name"], mod_name=module.name)
new_type.attributes = typ["attributes"]
try:
new_type.attributes = typ["attributes"]
except KeyError:
# This is for retrocompatibility with old json files
new_type.attributes = []
if typ["has_assignment"]:
new_type.attributes.append("has_assignment")
new_type.py_mod_name = mod["package"]
new_type.is_external = True
module.types.append(new_type)
Expand Down
Loading