diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2014-02-11 11:37:18 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2014-02-11 11:37:44 +0100 |
commit | 3899e02d0c124fb0058e3d355793c442821feb9c (patch) | |
tree | b05deaaaa1dace6262b3214be4dc145b99d5c3a5 | |
parent | 68e6c59f5f8af54c85953ef21fa2a53d6fc11fe9 (diff) | |
download | webadmin-kolab-webadmin-3.1.5.tar.gz |
Correct throwing Exceptions, rather than raising them </Pythonism>kolab-webadmin-3.1.5
-rw-r--r-- | lib/api/kolab_api_service_user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php index 202510d..4d985bb 100644 --- a/lib/api/kolab_api_service_user.php +++ b/lib/api/kolab_api_service_user.php @@ -214,7 +214,7 @@ class kolab_api_service_user extends kolab_api_service } if ($users['count'] > 1) { - raise Exception, "More than a single entry found."; + throw new Exception("More than a single entry found.", 942); } // get user data |