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
Looks like connection error handler code throws an exception (at least in this version of the Redis client):
Traceback (most recent call last):
File ".../snappass/venv/bin/snappass", line 9, in <module>
load_entry_point('snappass', 'console_scripts', 'snappass')()
File ".../snappass/snappass/main.py", line 40, in inner
print('Failed to connect to redis! %s' % e.message)
AttributeError: 'ConnectionError' object has no attribute 'message'
It seems error indicates that an AttributeError is raised because the 'ConnectionError' object has no 'message' attribute. So I think using str(e) instead of e.message is reasonable, as str(e) will convert the exception object to a string and include the error message.
Looks like connection error handler code throws an exception (at least in this version of the Redis client):
And double-checking:
Using
str(e)
probably solves the issue, and I guess adding a test would make sense.Relates to the changes in #24
The text was updated successfully, but these errors were encountered: