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
2 changes: 1 addition & 1 deletion ifex/models/common/type_checking_constructor_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def type_checking_constructor(self, *args, **kwargs):
if not is_correct_type(value, arg_types[name]):
try:
nameinfo = f"Additional Info: The object was named: {self.name}"
except:
except AttributeError:
nameinfo = ""
raise TypeError(f'Object construction error for class {type(self)}: According to specification, value named \'{name}\' must be of type: {arg_types[name]}, but was instead: {type(value)!r}. {nameinfo}')

Expand Down