mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-07 05:52:27 -04:00
Merge pull request #49 from nlevitt/work-dir-cleanup-exception
catch and log exception deleting temporary work directory
This commit is contained in:
commit
54d92f88b0
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ class Browser:
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self._chrome_instance.stop()
|
self._chrome_instance.stop()
|
||||||
|
try:
|
||||||
self._work_dir.cleanup()
|
self._work_dir.cleanup()
|
||||||
|
except:
|
||||||
|
self.logger.error("exception deleting %s", self._work_dir,
|
||||||
|
exc_info=True)
|
||||||
|
|
||||||
def abort_browse_page(self):
|
def abort_browse_page(self):
|
||||||
self._abort_browse_page = True
|
self._abort_browse_page = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue