From 2236b52816b53650e0f7204003a1292f724b682a Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 18 Jul 2019 01:54:39 +0200 Subject: [PATCH] fix sequence option declaration in yaml files --- mitmproxy/optmanager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mitmproxy/optmanager.py b/mitmproxy/optmanager.py index 06e696c01..6e187b0de 100644 --- a/mitmproxy/optmanager.py +++ b/mitmproxy/optmanager.py @@ -320,7 +320,9 @@ class OptManager: update = {} for optname, optval in self.deferred.items(): if optname in self._options: - update[optname] = self.parse_setval(self._options[optname], optval) + if isinstance(optval, str): + optval = self.parse_setval(self._options[optname], optval) + update[optname] = optval self.update(**update) for k in update.keys(): del self.deferred[k]