fix mistakenly removed import; try to shut down chrome in case of unexpected exception

This commit is contained in:
Noah Levitt 2015-08-19 20:04:46 +00:00
parent 2533229fa1
commit ddce1cdc71

View File

@ -17,6 +17,7 @@ from brozzler.behaviors import Behavior
from requests.structures import CaseInsensitiveDict
import select
import re
import base64
__all__ = ["BrowserPool", "Browser"]
@ -245,6 +246,7 @@ class Browser:
self._handle_message(websock, message)
except:
self.logger.error("uncaught exception in _handle_message", exc_info=True)
self.abort_browse_page()
def _network_request_will_be_sent(self, message):
if self._behavior: