diff --git a/Control/AthenaCommon/python/ConfigurationShelve.py b/Control/AthenaCommon/python/ConfigurationShelve.py index 251d62d4e9ec261d6e75d582f6477c6a3670c24d..748b696fd0fe6089299e91192e7e143cd2315e9d 100644 --- a/Control/AthenaCommon/python/ConfigurationShelve.py +++ b/Control/AthenaCommon/python/ConfigurationShelve.py @@ -49,7 +49,10 @@ def _monkeypatch_bug_34752(): del GaudiHandleArray.__setstate__ except AttributeError: pass # already done, or not relevant anymore return -_monkeypatch_bug_34752() +try: + _monkeypatch_bug_34752() +except: # noqa: E722 + pass del _monkeypatch_bug_34752