summaryrefslogtreecommitdiffstats
path: root/lib/Controller/GuestController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-01-08 11:08:02 +0100
committerJoas Schilling <coding@schilljs.com>2021-01-08 11:12:34 +0100
commitf0220343e4f212f5f0fd1c21a1f4d108cc365596 (patch)
tree4db67e8cd0f7d8ac457f99bf3fc6040ceebe7d38 /lib/Controller/GuestController.php
parent19c90af6c7a27dcfece0b1331d25d2fff102c10b (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.php4
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);
}