mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-29 00:00:26 +00:00
Merge pull request #536 from tekii/master
fixed exception in mitmproxy -c fix #535
This commit is contained in:
commit
13860cf6b4
@ -293,16 +293,20 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
- a list of flows, otherwise.
|
||||
"""
|
||||
try:
|
||||
return flow.read_flows_from_paths([path])
|
||||
return flow.read_flows_from_paths(path)
|
||||
except flow.FlowReadError as e:
|
||||
signals.status_message.send(message=e.strerror)
|
||||
|
||||
def client_playback_path(self, path):
|
||||
if not isinstance(path, list):
|
||||
path = [path]
|
||||
flows = self._readflows(path)
|
||||
if flows:
|
||||
self.start_client_playback(flows, False)
|
||||
|
||||
def server_playback_path(self, path):
|
||||
if not isinstance(path, list):
|
||||
path = [path]
|
||||
flows = self._readflows(path)
|
||||
if flows:
|
||||
self.start_server_playback(
|
||||
|
Loading…
Reference in New Issue
Block a user