Squelch git not found exception (#973)
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 2 Jul 2013 06:36:20 +0000 (08:36 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 2 Jul 2013 06:36:20 +0000 (08:36 +0200)
youtube_dl/__init__.py

index d4a005f6244975945f447752b6494d0fb255cc7d..db63d0adb7a68f3f1f1eb39e5da7dd4a38937ebf 100644 (file)
@@ -591,7 +591,7 @@ def _real_main(argv=None):
             if re.match('[0-9a-f]+', out):
                 ydl.to_screen(u'[debug] Git HEAD: ' + out)
         except:
-            pass
+            sys.exc_clear()
         ydl.to_screen(u'[debug] Python version %s - %s' %(platform.python_version(), platform.platform()))
         ydl.to_screen(u'[debug] Proxy map: ' + str(proxy_handler.proxies))