aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-07-17 01:33:28 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-07-17 01:33:28 +0200
commitde29c4144edf35c432e6356f2f9df561061eda50 (patch)
tree0a19bdb52340ef8a39acf4e89c4589f93849d703 /youtube_dl
parentf3bab0044e7ed1dfea5455ac9200daa13cf137ed (diff)
Ignore errors in git error handling in verbose mode in Python 3
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/__init__.py5
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')