summaryrefslogtreecommitdiffstats
path: root/bin/updater.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/updater.py')
-rw-r--r--bin/updater.py3
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))