Skip to content
Snippets Groups Projects
Unverified Commit bea2a8c2 authored by WHITFIELDRE email's avatar WHITFIELDRE email Committed by GitHub
Browse files

Merge pull request #22382 from mantidproject/22381_isispowder_pearl_deepcopy_systest

ISIS Powder prevent infinite recursion when deep-copying instrument settings object
parents b4bea9a1 8607b2ab
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,9 @@ class InstrumentSettings(object):
# __getattr__ is only called if the attribute was not set so we already know
# were going to throw at this point unless the attribute was optional.
def __getattr__(self, item):
if item == "__setstate__":
raise AttributeError(item)
# Check if it is in our parameter mapping
known_param = next((param_entry for param_entry in self._param_map if item == param_entry.int_name), None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment