Skip to content

Commit

Permalink
fix(optionbase): Ensure that IronPython exception is caught
Browse files Browse the repository at this point in the history
It seems that the IronPython interpreter does not raise an AttributeError where it is supposed to and we need to use SystemError.
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jul 7, 2021
1 parent 560e620 commit 9524f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions honeybee_radiance_command/options/optionbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,10 @@ def __repr__(self):
def __setattr__(self, name, value):
try:
object.__setattr__(self, name, value)
except AttributeError:
except (AttributeError, SystemError):
try:
object.__setattr__(self, name + '_', value)
except AttributeError:
except (AttributeError, SystemError):
raise AttributeError(
'"{1}" object has no attribute "{0}".'
'\nYou can still try to use `update_from_string` method to add or'
Expand Down

0 comments on commit 9524f05

Please sign in to comment.