with redis I used `except redis.RedisError as e:` how can I do the same but with `upstash_redis`? If I use `except Redis.RedisError as e:` I get: `AttributeError: type object 'Redis' has no attribute 'RedisError'`
with redis I used
except redis.RedisError as e:how can I do the same but with
upstash_redis?If I use
except Redis.RedisError as e:I get:AttributeError: type object 'Redis' has no attribute 'RedisError'