Mercurial > python-hglib
view .hgtags @ 197:6949fc164439 2.5
hgclient: look for an open server before closing it in ResponseError block
At least some of the codepaths that can throw a ResponseError close
the server first (the one in _readchannel does so in order to detect
server startup failures, for example), so we have to verify we have a
server to close before doing so, otherwise we can lose the
ResponseError and the user sees an AttributeError when we try to use
.close() on a NoneType.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 10 Dec 2017 12:52:37 -0500 |
parents | 8e959ad6a25c |
children | 79a19cf1528e |
line wrap: on
line source
c41442cb355d55ca152d5f13a95a6bf2ebc5b870 0.1 cc2b7540fa2bd0ddb8ba29786a0f73d682bee0a7 0.2 86ff8611a8fad14d4c1dba6d75bc26caaa41e951 0.3 5fe53db61aa433018de8b0ee296db868f666cee7 0.4 c635e6e7054f2600d36343eaa1770cb36549382a 0.9 8867908fe8c751dc0aef6194dd401ae08a4931f3 1.0 e738d6fe5f3ff613a4ee2c0d759eee0ee4f5c9ff 1.1 5d3783aebe5f82bb9dc90fde31543c262b797dd4 1.2 df808f92c0f19241920ee8cd9ef0ddd7e1c312a6 1.3 1b47146a4a2ca48624598d55f73d4aceca8bfb35 1.4 a05cdc1579df62120e716c6e9113458f568f0ff3 1.5 91329df47df5825072947821f9571fc5dd6b1342 1.6 e0678dfb7aeca9fb368ccb354e4cdec93189b208 1.7 dbb21a4c0eb914b454aa461a7e70504239bbc6ba 1.8 e6589149b2c8547a8154083ebfdb882e3225d74c 1.9 2725547a5f92d61a672420569f7237b81b582fab 2.0 8c4d24b58c23030616d7f65a4ae3a392e8ef9d0d 2.1 3f854e3bcdd109fe86c5bda911b76408184a2d98 2.2 0f81ed8e147b60b939dd4580c05f31a1aa464a16 2.3 820d7c1e470aaa11dad8f33e9161179a8115cef6 2.4