Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Fix checking for config.proxy_username #47

Merged
merged 1 commit into from Mar 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion nectar/downloaders/threaded.py
Expand Up @@ -399,7 +399,7 @@ def _add_proxy(session, config):
host, remainder = urllib.splithost(remainder)
url = ':'.join((host, str(config.proxy_port)))

if config.proxy_username is not None:
if config.proxy_username:
password_part = config.get('proxy_password', '') and ':%s' % config.proxy_password
auth = config.proxy_username + password_part
auth = urllib.quote(auth, safe=':')
Expand Down