SmartRedis
SmartRedis copied to clipboard
Client set_function Exception issue
Description
Originally, bad_function
in test_errors.py
had only the line:
raise Exception
However, with the new version of RedisAI, we get an error from RedisAI saying:
undefined value Exception:
File "<string>", line 3
def bad_function(data):
"""Bad function which only raises an exception"""
raise Exception
~~~~~~~~~ <--- HERE
We got around this by return False from the function instead (the exception is not actually required by the tests. However, we need to understand why this is the case.
I was able to reproduce this error via redis-cli
, and therefore it seems to be an issue outside of our test.