mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
Use default encoding error from redis.
This commit is contained in:
parent
05079c143c
commit
f61d830678
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,6 @@ class Paste(object):
|
||||||
host=cfg.get("Redis_Queues", "host"),
|
host=cfg.get("Redis_Queues", "host"),
|
||||||
port=cfg.getint("Redis_Queues", "port"),
|
port=cfg.getint("Redis_Queues", "port"),
|
||||||
db=cfg.getint("Redis_Queues", "db"),
|
db=cfg.getint("Redis_Queues", "db"),
|
||||||
encoding_errors='replace',
|
|
||||||
decode_responses=True)
|
decode_responses=True)
|
||||||
self.store = redis.StrictRedis(
|
self.store = redis.StrictRedis(
|
||||||
host=cfg.get("Redis_Data_Merging", "host"),
|
host=cfg.get("Redis_Data_Merging", "host"),
|
||||||
|
@ -128,6 +127,8 @@ class Paste(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
paste = self.cache.get(self.p_path)
|
paste = self.cache.get(self.p_path)
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
paste = None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("ERROR in: " + self.p_path)
|
print("ERROR in: " + self.p_path)
|
||||||
print(e)
|
print(e)
|
||||||
|
|
Loading…
Reference in a new issue