From 909d5ec87e4d2d6403dce7bb868f4f178cce7865 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 29 Apr 2016 11:17:49 -0700 Subject: FlowReadError -> FlowReadException --- examples/read_dumpfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/read_dumpfile') diff --git a/examples/read_dumpfile b/examples/read_dumpfile index 39f18e3d..b1001c3d 100644 --- a/examples/read_dumpfile +++ b/examples/read_dumpfile @@ -4,6 +4,7 @@ # from mitmproxy import flow +from mitmproxy.exceptions import FlowReadException import pprint import sys @@ -16,5 +17,5 @@ with open(sys.argv[1], "rb") as logfile: print(f.request.host) pp.pprint(f.get_state()) print("") - except flow.FlowReadError as v: - print("Flow file corrupted. Stopped loading.") + except FlowReadException as e: + print("Flow file corrupted: {}".format(e)) -- cgit v1.2.3