stablerange: be more cautious when deleting the sql connection
This triggered some crash in further development. This also match what is done
elsewhere with this attribute.
--- a/hgext3rd/evolve/stablerangecache.py Thu Dec 21 03:42:54 2017 +0100
+++ b/hgext3rd/evolve/stablerangecache.py Thu Dec 21 04:35:40 2017 +0100
@@ -267,7 +267,8 @@
def clear(self, reset=False):
super(stablerangesql, self).clear(reset=reset)
- del self._con
+ if '_con' in vars(self):
+ del self._con
self._subrangescache.clear()
def load(self, repo):