From 9524f057e588fa7017850045b656b8720599c69d Mon Sep 17 00:00:00 2001 From: Chris Mackey Date: Tue, 6 Jul 2021 23:31:24 -0400 Subject: [PATCH] fix(optionbase): Ensure that IronPython exception is caught It seems that the IronPython interpreter does not raise an AttributeError where it is supposed to and we need to use SystemError. --- honeybee_radiance_command/options/optionbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/honeybee_radiance_command/options/optionbase.py b/honeybee_radiance_command/options/optionbase.py index 95980a90..7c398e03 100644 --- a/honeybee_radiance_command/options/optionbase.py +++ b/honeybee_radiance_command/options/optionbase.py @@ -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'