From 616edc835228c53d901fb17210bd45dd7d5c9d5a Mon Sep 17 00:00:00 2001 From: nanaya Date: Mon, 21 Oct 2024 19:37:59 +0900 Subject: [PATCH] Fix exception class name --- app/Models/Forum/TopicWatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Forum/TopicWatch.php b/app/Models/Forum/TopicWatch.php index e64014a576a..5a051fc6104 100644 --- a/app/Models/Forum/TopicWatch.php +++ b/app/Models/Forum/TopicWatch.php @@ -92,7 +92,7 @@ public static function setState($topic, $user, $state) } return $watch; - } catch (Exception $e) { + } catch (\Throwable $e) { if (is_sql_unique_exception($e) && $tries < 2) { $tries++; } else {