diff options
author | Philipp Hagemeister <[email protected]> | 2013-07-17 01:33:28 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-07-17 01:33:28 +0200 |
commit | de29c4144edf35c432e6356f2f9df561061eda50 (patch) | |
tree | 0a19bdb52340ef8a39acf4e89c4589f93849d703 | |
parent | f3bab0044e7ed1dfea5455ac9200daa13cf137ed (diff) | |
download | youtube-dl-de29c4144edf35c432e6356f2f9df561061eda50.tar.gz youtube-dl-de29c4144edf35c432e6356f2f9df561061eda50.zip |
Ignore errors in git error handling in verbose mode in Python 3
-rw-r--r-- | youtube_dl/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 4628ae933..31427f7c5 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -591,7 +591,10 @@ def _real_main(argv=None): if re.match('[0-9a-f]+', out): sys.stderr.write(u'[debug] Git HEAD: ' + out + u'\n') except: - sys.exc_clear() + try: + sys.exc_clear() + except: + pass sys.stderr.write(u'[debug] Python version %s - %s' %(platform.python_version(), platform.platform()) + u'\n') sys.stderr.write(u'[debug] Proxy map: ' + str(proxy_handler.proxies) + u'\n') |