mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Fix mitmproxy file reading.
This commit is contained in:
parent
31a092f6b4
commit
47b5fd666d
@ -550,7 +550,7 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
ret = self.load_flows(self.options.rfile)
|
ret = self.load_flows(self.options.rfile)
|
||||||
if ret and self.state.flow_count():
|
if ret and self.state.flow_count():
|
||||||
self.add_event("File truncated or corrupted. Loaded as many flows as possible.")
|
self.add_event("File truncated or corrupted. Loaded as many flows as possible.")
|
||||||
else:
|
elif not self.state.flow_count():
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
print >> sys.stderr, "Could not load file:", ret
|
print >> sys.stderr, "Could not load file:", ret
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user