diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-05 17:30:19 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-05 17:30:19 +0200 |
commit | a4acdabcaadc4d6d85107db8babf4aabe255fa15 (patch) | |
tree | 49b683a87eb0e39a9a2b1d3a6ed65c71e88d8c51 /bin/updater.py | |
parent | 6d8932da8be8df7d754fe3f4ac5df45ee0865590 (diff) |
dont set global auth handler
Diffstat (limited to 'bin/updater.py')
-rw-r--r-- | bin/updater.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/updater.py b/bin/updater.py index 0644d91e3..1c9222335 100644 --- a/bin/updater.py +++ b/bin/updater.py @@ -65,8 +65,7 @@ class UpdateThread(threading.Thread): auth.add_password(None, url, self.user, self.password) auth_handler = urllib.request.HTTPBasicAuthHandler(auth) opener = urllib.request.build_opener(auth_handler) - urllib.request.install_opener(opener) - urllib.request.urlopen(url, timeout=60) + opener.open(url, timeout=60) except urllib.error.HTTPError as e: print('%s: %s' % (url, e)) |