diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2011-09-25 23:07:35 +0200 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2011-09-29 09:48:06 +0200 |
commit | 19daa117b90289d724392e04e3647ade6db4dd7b (patch) | |
tree | d5d8bd59a3571e211cad9f976f59245dc26bf6e8 /bindings/python/notmuch/tag.py | |
parent | 34990908e75f73061753a7f38201a05247a207a1 (diff) |
properly raise exceptions in python bindings
There are various locations where exceptions are constructed but
not raised. This patch adds the necessary raise statements.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings/python/notmuch/tag.py')
-rw-r--r-- | bindings/python/notmuch/tag.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/notmuch/tag.py b/bindings/python/notmuch/tag.py index 0f25b0f..50e3686 100644 --- a/bindings/python/notmuch/tag.py +++ b/bindings/python/notmuch/tag.py @@ -70,7 +70,7 @@ class Tags(object): cache the tags in the Python object(?) """ if tags_p is None: - NotmuchError(STATUS.NULL_POINTER) + raise NotmuchError(STATUS.NULL_POINTER) self._tags = tags_p #save reference to parent object so we keep it alive |