Permalink
Browse files

Print actual error if debugging.

  • Loading branch information...
1 parent b5c994e commit 787e88ad46280288f559e728598fcb2a8487129c @JakeWharton committed Aug 2, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 videodownloader/main.py
View
@@ -68,7 +68,9 @@ def main():
os.remove(v.full_filename)
except IOError:
print 'WARNING: Could not remove partial file.'
- except (urllib2.HTTPError, IOError):
+ except (urllib2.HTTPError, IOError) as e:
+ if options.is_debug:
+ print e
print "ERROR: Fatal HTTP error."
print

0 comments on commit 787e88a

Please sign in to comment.