mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
better handle exceptions from listeners
This commit is contained in:
parent
89f965d1d3
commit
46887f7594
@ -92,5 +92,9 @@ class WarcWriterThread(threading.Thread):
|
||||
def _final_tasks(self, recorded_url, records):
|
||||
if self.listeners:
|
||||
for listener in self.listeners:
|
||||
listener.notify(recorded_url, records)
|
||||
try:
|
||||
listener.notify(recorded_url, records)
|
||||
except:
|
||||
self.logger.error('%s raised exception',
|
||||
listener.notify, exc_info=True)
|
||||
self._log(recorded_url, records)
|
||||
|
Loading…
x
Reference in New Issue
Block a user