Back to my blog Back to my projects

Scripts

Changeset 45222ed


Ignore:
Timestamp:
01/07/12 10:58:18 (17 months ago)
Author:
Aurélien Bompard <aurelien@…>
Branches:
master
Children:
fc7bbfc
Parents:
d473bae
git-author:
Aurélien Bompard <aurelien@…> (01/07/12 10:58:18)
git-committer:
Aurélien Bompard <aurelien@…> (01/07/12 10:58:18)
Message:

podcast-transcode: catch one more exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • podcast-transcode.py

    r26929f9 r45222ed  
    2222import sys 
    2323import urllib2 
     24import httplib 
    2425import glob 
    2526import subprocess 
     
    131132            self.content_type = remote_file.info().get("Content-Type") 
    132133            remote_file.close() 
    133         except urllib2.HTTPError, e: 
     134        except (urllib2.HTTPError, httplib.HTTPException), e: 
    134135            print "Failed downloading %s" % url 
    135136            print e 
Note: See TracChangeset for help on using the changeset viewer.