[vlc-commits] Specify caught exception

Olivier Aubert git at videolan.org
Thu Apr 7 23:48:43 CEST 2016


vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Thu Apr  7 15:50:48 2016 +0200| [f0fce84126d28c11e2939bbef1ee7e104742286f] | committer: Olivier Aubert

Specify caught exception

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=f0fce84126d28c11e2939bbef1ee7e104742286f
---

 tests/test.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test.py b/tests/test.py
index af35133..e307e58 100755
--- a/tests/test.py
+++ b/tests/test.py
@@ -29,12 +29,12 @@
 import unittest
 try:
     import urllib.parse as urllib # python3
-except:
+except ImportError:
     import urllib # python2
 
 try:
     import vlc
-except:
+except ImportError:
     import generated.vlc as vlc
 
 print ("Checking " + vlc.__file__)



More information about the vlc-commits mailing list