pre-commit changes
This commit is contained in:
8
App/cache/__init__.py
vendored
8
App/cache/__init__.py
vendored
@@ -1,5 +1,7 @@
|
||||
import json
|
||||
from redis import Redis, ConnectionError, DataError
|
||||
|
||||
from redis import ConnectionError, DataError, Redis
|
||||
|
||||
|
||||
class RedisCache:
|
||||
def __init__(self, config: dict):
|
||||
@@ -36,7 +38,7 @@ class RedisCache:
|
||||
return value_dict
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
self.conn.close()
|
||||
return True
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user