[pitivi] check: [pylint] remove generic try/excepts.



commit 2976961c66ae31bc52f0cc45358fa77171e7b1bd
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date:   Thu Feb 6 17:34:38 2014 +0100

    check: [pylint] remove generic try/excepts.

 pitivi/check.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index 63e694e..070ca49 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -86,7 +86,7 @@ def _try_import_from_gi(modulename):
     try:
         __import__("gi.repository." + modulename)
         return True
-    except:
+    except ImportError:
         return False
 
 
@@ -94,7 +94,7 @@ def _try_import(modulename):
     try:
         __import__(modulename)
         return True
-    except:
+    except ImportError:
         return False
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]