equal
deleted
inserted
replaced
264 def _save(self, repo): |
264 def _save(self, repo): |
265 if not self._unsavedsubranges: |
265 if not self._unsavedsubranges: |
266 return |
266 return |
267 try: |
267 try: |
268 return self._trysave(repo) |
268 return self._trysave(repo) |
269 except (sqlite3.DatabaseError, sqlite3.OperationalError, sqlite3.IntegrityError) as exc: |
269 except (IOError, OSError, sqlite3.DatabaseError, sqlite3.OperationalError, sqlite3.IntegrityError) as exc: |
270 # Catch error that may arise under stress |
270 # Catch error that may arise under stress |
271 # |
271 # |
272 # operational error catch read-only and locked database |
272 # operational error catch read-only and locked database |
273 # IntegrityError catch Unique constraint error that may arise |
273 # IntegrityError catch Unique constraint error that may arise |
274 if '_con' in vars(self): |
274 if '_con' in vars(self): |