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:18 +0100 |
commit | 301f909fb4c65e1ceb34b224de30938436c6a884 (patch) | |
tree | 7a3cc04c0e96ec34cb9f588f815ab72937ba6217 /lib/api/kolab_api_service_user.php | |
parent | a1b72a428231c67d5c2fdedc202c323e145630b0 (diff) | |
download | webadmin-301f909fb4c65e1ceb34b224de30938436c6a884.tar.gz |
Correct throwing Exceptions, rather than raising them </Pythonism>
Diffstat (limited to 'lib/api/kolab_api_service_user.php')
-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 |