diff options
Diffstat (limited to 'apps/twofactor_backupcodes')
-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']); } |