hgext3rd/evolve/stablerangecache.py
branchstable
changeset 4027 130a60a51fff
parent 4026 b375398074b0
child 4029 a01783a0468c
--- a/hgext3rd/evolve/stablerangecache.py	Mon Aug 27 12:40:41 2018 +0200
+++ b/hgext3rd/evolve/stablerangecache.py	Mon Aug 27 12:40:47 2018 +0200
@@ -184,7 +184,7 @@
                     value = self._con.execute(_querysubranges, rangeid).fetchall()
                 # in memory caching of the value
                 cache[rangeid] = value
-            except sqlite3.OperationalError:
+            except (sqlite3.DatabaseError, sqlite3.OperationalError):
                 # something is wrong with the sqlite db
                 # Since this is a cache, we ignore it.
                 if '_con' in vars(self):
@@ -236,7 +236,7 @@
             return
         try:
             return self._trysave(repo)
-        except (sqlite3.OperationalError, sqlite3.IntegrityError) as exc:
+        except (sqlite3.DatabaseError, sqlite3.OperationalError, sqlite3.IntegrityError) as exc:
             # Catch error that may arise under stress
             #
             # operational error catch read-only and locked database