summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index 1c109ed6..8c1df455 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -71,6 +71,7 @@ def check_type(name, type_, value, allow_None=False):
return
if type(value) is not type_:
raise_TypeError(name, type_, value)
+ return value
def check_isinstance(name, type_, value, allow_None=False):
@@ -81,6 +82,7 @@ def check_isinstance(name, type_, value, allow_None=False):
return
if not isinstance(value, type_):
raise_TypeError(name, type_, value)
+ return value
class IPAError(Exception):