diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-08 11:08:02 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-01-08 11:12:34 +0100 |
commit | f0220343e4f212f5f0fd1c21a1f4d108cc365596 (patch) | |
tree | 4db67e8cd0f7d8ac457f99bf3fc6040ceebe7d38 /lib/Controller/GuestController.php | |
parent | 19c90af6c7a27dcfece0b1331d25d2fff102c10b (diff) |
Update code to work with doctrine/dbal 3.0
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/GuestController.php')
-rw-r--r-- | lib/Controller/GuestController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/GuestController.php b/lib/Controller/GuestController.php index 468fb28b1..20ea8716c 100644 --- a/lib/Controller/GuestController.php +++ b/lib/Controller/GuestController.php @@ -24,7 +24,7 @@ declare(strict_types=1); namespace OCA\Talk\Controller; -use Doctrine\DBAL\DBALException; +use Doctrine\DBAL\Exception; use OCA\Talk\GuestManager; use OCA\Talk\Participant; use OCP\AppFramework\Http; @@ -63,7 +63,7 @@ class GuestController extends AEnvironmentAwareController { try { $this->guestManager->updateName($this->getRoom(), $participant, $displayName); - } catch (DBALException $e) { + } catch (Exception $e) { return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR); } |