added graceful handling of missing optional packages
This commit is contained in:
@@ -17,9 +17,6 @@ from python_repositories.interfaces import (
|
||||
if find_spec("redis") is not None:
|
||||
import redis
|
||||
from redis.commands.json.path import Path as RedisPath
|
||||
else:
|
||||
redis = None # type: ignore
|
||||
RedisPath = None # type: ignore
|
||||
|
||||
|
||||
class RedisAdapter(
|
||||
|
||||
Reference in New Issue
Block a user