diff options
Diffstat (limited to 'lorrycontroller/proxy.py')
-rw-r--r-- | lorrycontroller/proxy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lorrycontroller/proxy.py b/lorrycontroller/proxy.py index 22729d3..b9e75b8 100644 --- a/lorrycontroller/proxy.py +++ b/lorrycontroller/proxy.py @@ -36,15 +36,15 @@ def build_proxy_url(protocol, proxy_config): def setup_proxy(config_filename): """Tell urllib2 to use a proxy for http action by lorry-controller. - + Load the proxy information from the JSON file given by proxy_def, then set urllib2's url opener to open urls via an authenticated proxy. - + """ - + if not os.path.exists(config_filename): return - + with open(config_filename, 'r') as f: proxy_config = json.load(f) |