X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fvalue.py;h=e7b3969b3c0afc481958521dd87c1164a9826e00;hb=614743a5d5d7e661bf95abda9d81468c1d67c030;hp=2c9476604be8b337228716a4956b02dc8e4564ad;hpb=493428a0e391525646df54b91b63f295f565eb26;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/value.py b/src/bindings/python/bt2/bt2/value.py index 2c947660..e7b3969b 100644 --- a/src/bindings/python/bt2/bt2/value.py +++ b/src/bindings/python/bt2/bt2/value.py @@ -92,7 +92,7 @@ class _Value(object._SharedObject, metaclass=abc.ABCMeta): def _check_create_status(self, ptr): if ptr is None: - raise bt2.MemoryError( + raise bt2._MemoryError( 'cannot create {} value object'.format(self._NAME.lower()) )