diff --git a/libmproxy/dump.py b/libmproxy/dump.py index 436da4a5c..59eafd4c0 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -95,8 +95,9 @@ class DumpMaster(flow.FlowMaster): except IOError, v: raise DumpError(v.strerror) - for i in options.replacements: - self.replacehooks.add(*i) + if options.replacements: + for i in options.replacements: + self.replacehooks.add(*i) if options.server_replay: self.start_server_playback(