aboutsummaryrefslogtreecommitdiff
path: root/app/class/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/User.php')
-rw-r--r--app/class/User.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/class/User.php b/app/class/User.php
index b2b6193..efd89ae 100644
--- a/app/class/User.php
+++ b/app/class/User.php
@@ -4,6 +4,7 @@ namespace Wcms;
use DateTimeImmutable;
use DateTimeZone;
+use RuntimeException;
class User extends Item
{
@@ -203,7 +204,7 @@ class User extends Item
function ($datas) {
try {
return new Bookmark($datas);
- } catch (\Throwable $th) {
+ } catch (RuntimeException $e) {
return false;
}
},