X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fvalue.py;fp=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fvalue.py;h=2c9476604be8b337228716a4956b02dc8e4564ad;hb=4acc866e829881299a13d0aa8e28b93807549975;hp=9ba010869a9875382dd73716dbb75a78c62b4b57;hpb=ce4923b0c7a2de36eba95725334d251e9aa08aad;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/value.py b/src/bindings/python/bt2/bt2/value.py index 9ba01086..2c947660 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.CreationError( + raise bt2.MemoryError( 'cannot create {} value object'.format(self._NAME.lower()) )