mercurial/keepalive.py
changeset 43117 8ff1ecfadcd1
parent 43106 d783f945a701
child 43506 9f70512ae2cf
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
   294             # same exception was raised, etc.  The trade-off is
   294             # same exception was raised, etc.  The trade-off is
   295             # that it's now possible this call will raise
   295             # that it's now possible this call will raise
   296             # a DIFFERENT exception
   296             # a DIFFERENT exception
   297             if DEBUG:
   297             if DEBUG:
   298                 DEBUG.error(
   298                 DEBUG.error(
   299                     b"unexpected exception - closing " b"connection to %s (%d)",
   299                     b"unexpected exception - closing connection to %s (%d)",
   300                     host,
   300                     host,
   301                     id(h),
   301                     id(h),
   302                 )
   302                 )
   303             self._cm.remove(h)
   303             self._cm.remove(h)
   304             h.close()
   304             h.close()