Skip to content

Commit

Permalink
remove try
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Apr 12, 2024
1 parent 1b78eab commit 14541ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/hdmf/build/classgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,7 @@ def set_init(cls, classdict, bases, docval_args, not_inherited_fields, name):
'doc': 'bool to skip post_init for MCIClassGenerator'},
allow_positional=AllowPositional.WARNING)
def __init__(self, **kwargs):
try:
post_init_bool = popargs('post_init_bool', kwargs)
except KeyError:
post_init_bool = True
post_init_bool = popargs('post_init_bool', kwargs)

original_kwargs = dict(kwargs)
if name is not None: # force container name to be the fixed name in the spec
Expand Down

0 comments on commit 14541ce

Please sign in to comment.