1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 08:26:50 +00:00

Ignore errors in git error handling in verbose mode in Python 3

This commit is contained in:
Philipp Hagemeister 2013-07-17 01:33:28 +02:00
parent f3bab0044e
commit de29c4144e

View File

@ -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')