diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-12-19 12:01:32 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-12-19 12:01:32 +0100 |
commit | 5bad93472d203fbf8e6e896c4d0f45cd7410235d (patch) | |
tree | c1c7cc1b8008fe9cd948baf2ad18696c152dfefd /apps/twofactor_backupcodes/lib | |
parent | ed4017dfb4d605943988c6686b088b41d1680110 (diff) | |
download | nextcloud-server-5bad93472d203fbf8e6e896c4d0f45cd7410235d.tar.gz nextcloud-server-5bad93472d203fbf8e6e896c4d0f45cd7410235d.zip |
catch specific BadMethodCallException
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/twofactor_backupcodes/lib')
-rw-r--r-- | apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php b/apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php index d9f75fa5a33..ecb16305e92 100644 --- a/apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php +++ b/apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php @@ -22,7 +22,7 @@ namespace OCA\TwoFactorBackupCodes\Service; -use Exception; +use BadMethodCallException; use OCA\TwoFactorBackupCodes\Db\BackupCode; use OCA\TwoFactorBackupCodes\Db\BackupCodeMapper; use OCP\Activity\IManager; @@ -100,7 +100,7 @@ class BackupCodeStorage { ->setSubject($event); try { $this->activityManager->publish($activity); - } catch (Exception $e) { + } catch (BadMethodCallException $e) { $this->logger->warning('could not publish backup code creation activity', ['app' => 'twofactor_backupcodes']); $this->logger->logException($e, ['app' => 'twofactor_backupcodes']); } |