equal
deleted
inserted
replaced
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() |