From 4eb2b56dec09bf3e7322e402ad5ba46523309138 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 4 Nov 2016 10:54:04 +1300 Subject: Let's not over-ride __bool__ on connection objects If I had a thousand years and every thesaurus in the world, I still couldn't adequately express how much I dislike this piece of interface design. --- examples/har_dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/har_dump.py') diff --git a/examples/har_dump.py b/examples/har_dump.py index ab7bf1e1..aeb154d2 100644 --- a/examples/har_dump.py +++ b/examples/har_dump.py @@ -145,7 +145,7 @@ def response(flow): "params": params } - if flow.server_conn: + if flow.server_conn.connected(): entry["serverIPAddress"] = str(flow.server_conn.ip_address.address[0]) HAR["log"]["entries"].append(entry) -- cgit v1.2.3