aboutsummaryrefslogtreecommitdiff
path: root/controller/apicontroller.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-08-21 23:00:02 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-08-21 23:00:02 +0200
commit381f04b7e408baccc64588a865bff33bcd87e152 (patch)
tree4237ebdf713c7e5b6260f4dd190430fd375836f7 /controller/apicontroller.php
parent259d014ef83ac9f4d7b85648758c93d0fe657777 (diff)
downloadgrauphel-381f04b7e408baccc64588a865bff33bcd87e152.tar.gz
grauphel-381f04b7e408baccc64588a865bff33bcd87e152.zip
make sync work with conboy
Diffstat (limited to 'controller/apicontroller.php')
-rw-r--r--controller/apicontroller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/apicontroller.php b/controller/apicontroller.php
index aa21429..a4361ef 100644
--- a/controller/apicontroller.php
+++ b/controller/apicontroller.php
@@ -18,6 +18,7 @@ use \OCP\AppFramework\Http\JSONResponse;
use \OCA\Grauphel\Lib\NoteStorage;
use \OCA\Grauphel\Lib\OAuth;
+use \OCA\Grauphel\Lib\OAuthException;
use \OCA\Grauphel\Lib\Dependencies;
use \OCA\Grauphel\Lib\Response\ErrorResponse;
@@ -79,7 +80,7 @@ class ApiController extends Controller
$token = $deps->tokens->load('access', $provider->token);
$username = $token->user;
- } catch (\OAuth_Exception $e) {
+ } catch (OAuthException $e) {
return new ErrorResponse($e->getMessage());
} catch (\OAuthException $e) {
if ($e->getCode() != OAUTH_PARAMETER_ABSENT) {