mirror of https://github.com/CIRCL/lookyloo
fix: exception on broken captures in stats
parent
0074f33544
commit
dcc6b158b0
|
@ -1084,6 +1084,8 @@ class Lookyloo():
|
||||||
self.logger.warning(f'Unable load cache for {cache.get("uuid")} - {e}.')
|
self.logger.warning(f'Unable load cache for {cache.get("uuid")} - {e}.')
|
||||||
|
|
||||||
for cache in self.sorted_capture_cache() + archived:
|
for cache in self.sorted_capture_cache() + archived:
|
||||||
|
if not hasattr(cache, 'timestamp'):
|
||||||
|
continue
|
||||||
date_submission: datetime = cache.timestamp
|
date_submission: datetime = cache.timestamp
|
||||||
|
|
||||||
if date_submission.year not in stats:
|
if date_submission.year not in stats:
|
||||||
|
|
Loading…
Reference in New Issue