If the http_proxy environment variable is set but empty, python's urllib craps its pants and tries to concatenate a string with a NoneType object:
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
dest_file = urllib.urlretrieve(files[i])[0]
File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 243, in retrieve
fp = self.open(url, data)
File "/usr/lib/python2.7/urllib.py", line 201, in open
name = 'open_' + urltype
TypeError: cannot concatenate 'str' and 'NoneType' objects
If the http_proxy environment variable is set but empty, python's urllib craps its pants and tries to concatenate a string with a NoneType object:
Traceback (most recent call last): update- notifier/ package- data-downloader ", line 234, in process_ download_ requests urlretrieve( files[i] )[0] python2. 7/urllib. py", line 93, in urlretrieve retrieve( url, filename, reporthook, data) python2. 7/urllib. py", line 243, in retrieve python2. 7/urllib. py", line 201, in open
File "/usr/lib/
dest_file = urllib.
File "/usr/lib/
return _urlopener.
File "/usr/lib/
fp = self.open(url, data)
File "/usr/lib/
name = 'open_' + urltype
TypeError: cannot concatenate 'str' and 'NoneType' objects
That's what is causing the bug.