From e95d3da7259ad246a9750d07470253957cb6ecf8 Mon Sep 17 00:00:00 2001 From: "Y. Luis" Date: Thu, 26 Jul 2018 00:27:04 +0100 Subject: [PATCH] Update __init__.py When `dirpath` and `proxyaddr` are set, the last is ignored because of its indentation. --- pysipp/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pysipp/__init__.py b/pysipp/__init__.py index 3e68a6b..46eb248 100644 --- a/pysipp/__init__.py +++ b/pysipp/__init__.py @@ -109,10 +109,10 @@ def scenario(dirpath=None, proxyaddr=None, autolocalsocks=True, scenkwargs=scenkwargs ) - if proxyaddr: - assert isinstance( - proxyaddr, tuple), 'proxyaddr must be a (addr, port) tuple' - scen.clientdefaults.proxyaddr = proxyaddr + if proxyaddr: + assert isinstance( + proxyaddr, tuple), 'proxyaddr must be a (addr, port) tuple' + scen.clientdefaults.proxyaddr = proxyaddr return scen