mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
Changing EnvironmentError to OSError
This commit is contained in:
parent
77dabd4057
commit
c2dc2fee2a
@ -143,7 +143,7 @@ class Browser:
|
||||
try:
|
||||
with open(cookie_location,'wb') as cookie_file:
|
||||
cookie_file.write(cookie_db)
|
||||
except EnvironmentError:
|
||||
except OSError:
|
||||
self.logger.error("exception writing cookie file at: %s", cookie_location, exc_info=True)
|
||||
|
||||
self._chrome_instance = Chrome(
|
||||
@ -188,7 +188,7 @@ class Browser:
|
||||
try:
|
||||
with open(cookie_location, "rb") as cookie_file:
|
||||
cookie_db=cookie_file.read()
|
||||
except EnvironmentError:
|
||||
except OSError:
|
||||
self.logger.error("exception reading from cookie DB file at: %s", cookie_location, exc_info=True)
|
||||
return cookie_db
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user