Skip to content

Commit

Permalink
Fix for the initialisation of untemplated object. (#42)
Browse files Browse the repository at this point in the history
Untemplated objects can be managed through the Toolbox library, but
their construction when referenced would error because the `template`
argument wasn't passed. It is now passed as None.
  • Loading branch information
gerph authored Nov 15, 2023
1 parent f115370 commit ccf2a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscos_toolbox/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def parent(self):
if id in _objects:
obj = _objects[id]
else:
obj = Object(id)
obj = Object(id, None)
if comp_id == 0xffffffff:
comp = None
else:
Expand Down

0 comments on commit ccf2a0a

Please sign in to comment.