mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
Replace aliased OSError.
As of Python 3.3, various errors were merged into OSError. https://docs.python.org/3/library/exceptions.html#OSError
This commit is contained in:
@@ -153,7 +153,7 @@ class ApacheParser:
|
||||
try:
|
||||
# This is a noop save
|
||||
self.aug.save()
|
||||
except (RuntimeError, IOError):
|
||||
except (OSError, RuntimeError):
|
||||
self._log_save_errors(ex_errs)
|
||||
# Erase Save Notes
|
||||
self.configurator.save_notes = ""
|
||||
@@ -198,7 +198,7 @@ class ApacheParser:
|
||||
ex_errs = self.aug.match("/augeas//error")
|
||||
try:
|
||||
self.aug.save()
|
||||
except IOError:
|
||||
except OSError:
|
||||
self._log_save_errors(ex_errs)
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user