projects
/
winfreed.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
winfreed.py: print the URL when the download fails
[winfreed.git]
/
winfreed.py
diff --git
a/winfreed.py
b/winfreed.py
index
6a5e7b5
..
ca3cd32
100755
(executable)
--- a/
winfreed.py
+++ b/
winfreed.py
@@
-74,9
+74,9
@@
def download_file(src_url, dest_dir):
response = urllib2.urlopen(src_url)
except Exception, e:
if hasattr(e, 'reason'):
response = urllib2.urlopen(src_url)
except Exception, e:
if hasattr(e, 'reason'):
- print 'Download
failed. Reason: ', e.reason
+ print 'Download
ing from', src_url, '
failed. Reason: ', e.reason
elif hasattr(e, 'code'):
elif hasattr(e, 'code'):
- print 'Download
failed. Error code: ', e.code
+ print 'Download
ing from', src_url, '
failed. Error code: ', e.code
return
# get the final URL after possible redirect have been followed
return
# get the final URL after possible redirect have been followed