You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/pymol/setting.py", line 263, in set
v = (type, _validate_value(type, value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pymol/setting.py", line 91, in _validate_value
if is_string(value) and boolean_sc.has_key(value):
^^^^^^^^^^^^^^^^^^
AttributeError: 'Shortcut' object has no attribute 'has_key'
Possible fix
As the new Shortcut implementation has a __contains__ method, you can just do
Describe the bug
After the refactoring of the Shortcut class in this PR (https://github.com/schrodinger/pymol-open-source/pull/391/files), it is now missing a
has_key
method, which is still expected in setting.py (https://github.com/schrodinger/pymol-open-source/blob/master/modules/pymol/setting.py#L91).To Reproduce
causes
Possible fix
As the new Shortcut implementation has a
__contains__
method, you can just doEnvironment
The text was updated successfully, but these errors were encountered: