python: fix all "do not use bare 'except'" warnings
[babeltrace.git] / src / bindings / python / bt2 / bt2 / component_descriptor.py
index f86928d2c87a7c95d491ea8bf2a96d21c9ca235f..bafba7e5cfeb146e65aaf008deedb3a80c090461 100644 (file)
@@ -20,7 +20,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 
-from bt2 import native_bt, object, utils
+from bt2 import native_bt
 from bt2 import component as bt2_component
 import bt2
 
@@ -31,7 +31,7 @@ def _is_source_comp_cls(comp_cls):
 
     try:
         return issubclass(comp_cls, bt2_component._UserSourceComponent)
-    except:
+    except Exception:
         return False
 
 
@@ -41,7 +41,7 @@ def _is_filter_comp_cls(comp_cls):
 
     try:
         return issubclass(comp_cls, bt2_component._UserFilterComponent)
-    except:
+    except Exception:
         return False
 
 
@@ -51,7 +51,7 @@ def _is_sink_comp_cls(comp_cls):
 
     try:
         return issubclass(comp_cls, bt2_component._UserSinkComponent)
-    except:
+    except Exception:
         return False
 
 
This page took 0.039945 seconds and 4 git commands to generate.