Browse Source

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

rtmp_test
Philipp Hagemeister 12 years ago
parent
commit
de29c4144e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/__init__.py

+ 4
- 1
youtube_dl/__init__.py View File

@ -591,7 +591,10 @@ def _real_main(argv=None):
if re.match('[0-9a-f]+', out): if re.match('[0-9a-f]+', out):
sys.stderr.write(u'[debug] Git HEAD: ' + out + u'\n') sys.stderr.write(u'[debug] Git HEAD: ' + out + u'\n')
except: 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] Python version %s - %s' %(platform.python_version(), platform.platform()) + u'\n')
sys.stderr.write(u'[debug] Proxy map: ' + str(proxy_handler.proxies) + u'\n') sys.stderr.write(u'[debug] Proxy map: ' + str(proxy_handler.proxies) + u'\n')


Loading…
Cancel
Save