changeset 4105:dda7746647f2 stable

stablerangecache: be more paranoid in the errors we catch It seems like there error were already covered. Better safe than sorry.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 13 Sep 2018 17:09:34 +0200
parents a023abd12f3b
children dc50050dbf80
files hgext3rd/evolve/stablerangecache.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/stablerangecache.py	Thu Sep 13 19:22:03 2018 +0200
+++ b/hgext3rd/evolve/stablerangecache.py	Thu Sep 13 17:09:34 2018 +0200
@@ -266,7 +266,7 @@
             return
         try:
             return self._trysave(repo)
-        except (sqlite3.DatabaseError, sqlite3.OperationalError, sqlite3.IntegrityError) as exc:
+        except (IOError, OSError, sqlite3.DatabaseError, sqlite3.OperationalError, sqlite3.IntegrityError) as exc:
             # Catch error that may arise under stress
             #
             # operational error catch read-only and locked database