diff --git a/ld_eventsource/http.py b/ld_eventsource/http.py index 05c4e3a..8d1096b 100644 --- a/ld_eventsource/http.py +++ b/ld_eventsource/http.py @@ -91,7 +91,7 @@ def connect(self, last_event_id: Optional[str]) -> Tuple[Iterator[bytes], Callab def close(): try: resp.shutdown() - except AttributeError: + except Exception: pass resp.release_conn()