mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
commit
9c6a1ea8ec
1 changed files with 9 additions and 1 deletions
|
@ -125,7 +125,15 @@ class Paste(object):
|
|||
|
||||
"""
|
||||
|
||||
paste = self.cache.get(self.p_path)
|
||||
try:
|
||||
paste = self.cache.get(self.p_path)
|
||||
except UnicodeDecodeError:
|
||||
paste = None
|
||||
except Exception as e:
|
||||
print("ERROR in: " + self.p_path)
|
||||
print(e)
|
||||
paste = None
|
||||
|
||||
if paste is None:
|
||||
try:
|
||||
with gzip.open(self.p_path, 'r') as f:
|
||||
|
|
Loading…
Reference in a new issue