bt2: make bt2.Error wrap current thread's error
[babeltrace.git] / src / bindings / python / bt2 / bt2 / plugin.py
index 86612920fde281b4b8a2cf8338ab876eb2b47ef7..5198bdf32abfa3bb8e9ba9a86e397af5f9bc1154 100644 (file)
@@ -42,7 +42,7 @@ def find_plugins(path, recurse=True, fail_on_load_error=False):
             path, int(recurse), int(fail_on_load_error)
         )
     else:
-        raise bt2.Error("invalid path: '{}'".format(path))
+        raise ValueError("invalid path: '{}'".format(path))
 
     if status == native_bt.__BT_FUNC_STATUS_NOT_FOUND:
         return
This page took 0.023986 seconds and 4 git commands to generate.