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
Error triggered when trying to convert a class derived from (stash_types.py) StashEnum to string value.
An error occurs for both of the following lines of code:
Traceback (most recent call last):
File "E:\_Dev\Scripts\PythonScripts\StashTestWithStashPluginHelperpy.py", line 149, in <module>
high = str(PhashDistance.HIGH)
TypeError: __str__ returned non-string (type int)
Error triggered when trying to convert a class derived from (stash_types.py) StashEnum to string value.
An error occurs for both of the following lines of code:
Produces the following error:
Here's the fix:
In __str__ replace return self.value with return str(self.value)
FYI:
I don't believe importing IntEnum is needed in stash_types.py. It's not used in stash_types.py.
The text was updated successfully, but these errors were encountered: