diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-27 02:13:21 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-27 02:13:21 +1200 |
commit | 47b5fd666d549b5ff033c59654a7d0394ce0a51c (patch) | |
tree | 4e925e662b5f9be2a85f512f1484a137a26e5e3d /libmproxy/console/__init__.py | |
parent | 31a092f6b4678f57cd13c27934189123a5fd6457 (diff) | |
download | mitmproxy-47b5fd666d549b5ff033c59654a7d0394ce0a51c.tar.gz mitmproxy-47b5fd666d549b5ff033c59654a7d0394ce0a51c.tar.bz2 mitmproxy-47b5fd666d549b5ff033c59654a7d0394ce0a51c.zip |
Fix mitmproxy file reading.
Diffstat (limited to 'libmproxy/console/__init__.py')
-rw-r--r-- | libmproxy/console/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py index 898e858f..c047f9f9 100644 --- a/libmproxy/console/__init__.py +++ b/libmproxy/console/__init__.py @@ -550,7 +550,7 @@ class ConsoleMaster(flow.FlowMaster): ret = self.load_flows(self.options.rfile) if ret and self.state.flow_count(): self.add_event("File truncated or corrupted. Loaded as many flows as possible.") - else: + elif not self.state.flow_count(): self.shutdown() print >> sys.stderr, "Could not load file:", ret sys.exit(1) |