mirror of https://github.com/CIRCL/lookyloo
fix: Avoid 500 error on the website if unable to dump pickle.
parent
074bb675f6
commit
7d76d96ff7
|
@ -202,7 +202,10 @@ class Lookyloo():
|
|||
# is discarded in the RecursionError above.
|
||||
default_recursion_limit = sys.getrecursionlimit()
|
||||
sys.setrecursionlimit(int(default_recursion_limit * 1.1))
|
||||
try:
|
||||
pickle.dump(ct, _p)
|
||||
except RecursionError as e:
|
||||
raise NoValidHarFile(f'Tree too deep, probably a recursive refresh: {e}.\n Append /export to the URL to get the files.')
|
||||
sys.setrecursionlimit(default_recursion_limit)
|
||||
finally:
|
||||
lock_file.unlink(missing_ok=True)
|
||||
|
|
Loading…
Reference in New Issue