diff options
Diffstat (limited to 'libmproxy/console/__init__.py')
-rw-r--r-- | libmproxy/console/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py index 608742a4..76968ae5 100644 --- a/libmproxy/console/__init__.py +++ b/libmproxy/console/__init__.py @@ -640,7 +640,10 @@ class ConsoleMaster(flow.FlowMaster): fr = flow.FlowReader(f) except IOError, v: return v.strerror - flow.FlowMaster.load_flows(self, fr) + try: + flow.FlowMaster.load_flows(self, fr) + except flow.FlowReadError, v: + return v.strerror f.close() if self.conn_list_view: self.sync_list_view() |