SmartRedis icon indicating copy to clipboard operation
SmartRedis copied to clipboard

Client set_function Exception issue

Open mellis13 opened this issue 3 years ago • 1 comments

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.

mellis13 avatar Mar 16 '21 23:03 mellis13

I was able to reproduce this error via redis-cli, and therefore it seems to be an issue outside of our test.

mellis13 avatar Mar 17 '21 04:03 mellis13