bt2: make bt2.Error wrap current thread's error
[babeltrace.git] / src / bindings / python / bt2 / bt2 / component.py
index f31842181aa196dc81e681130ab8a796f7a5e7d5..07cccec90e035a1b8d800c23e0063445ef046823 100644 (file)
@@ -522,7 +522,7 @@ class _UserComponentType(type):
         return self
 
     def __call__(cls, *args, **kwargs):
-        raise bt2.Error(
+        raise RuntimeError(
             'cannot directly instantiate a user component from a Python module'
         )
 
This page took 0.025146 seconds and 4 git commands to generate.