Skip to content

Commit

Permalink
Merge pull request #8 from AlexandrePTJ/issue/7
Browse files Browse the repository at this point in the history
Allow to have no proxy being set. Fixes #7
  • Loading branch information
hechtus committed Mar 4, 2014
2 parents 24299c1 + 534bed9 commit 5827ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mopidy_radio_de/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class RadioDeApi():

USER_AGENT = 'Mopidy Radio.de Extension'

def __init__(self, language='english', user_agent=USER_AGENT, proxy=''):
def __init__(self, language='english', user_agent=USER_AGENT, proxy=None):
self.set_language(language)
self.user_agent = user_agent

if len(proxy):
if proxy is not None:
proxy_support = ProxyHandler({'http': proxy, 'https': proxy})
opener = build_opener(proxy_support)
install_opener(opener)
Expand Down

0 comments on commit 5827ed1

Please sign in to comment.