summaryrefslogtreecommitdiff
path: root/admin_pgv_to_wt.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin_pgv_to_wt.php')
-rw-r--r--admin_pgv_to_wt.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/admin_pgv_to_wt.php b/admin_pgv_to_wt.php
index a528024f78..2b4caf8395 100644
--- a/admin_pgv_to_wt.php
+++ b/admin_pgv_to_wt.php
@@ -18,6 +18,7 @@ namespace Fisharebest\Webtrees;
use Fisharebest\Webtrees\Controller\PageController;
use PDO;
use PDOException;
+use Throwable;
/** @global Tree $WT_TREE */
global $WT_TREE;
@@ -567,7 +568,7 @@ if ($PGV_SCHEMA_VERSION >= 12) {
)->execute([$setting->user_id, $tree->getTreeId(), 'gedcomid', $value]);
}
}
- } catch (\ErrorException $ex) {
+ } catch (Throwable $ex) {
DebugBar::addThrowable($ex);
// Invalid serialized data?
@@ -583,7 +584,7 @@ if ($PGV_SCHEMA_VERSION >= 12) {
)->execute([$setting->user_id, $tree->getTreeId(), 'rootid', $value]);
}
}
- } catch (\ErrorException $ex) {
+ } catch (Throwable $ex) {
DebugBar::addThrowable($ex);
// Invalid serialized data?
@@ -599,7 +600,7 @@ if ($PGV_SCHEMA_VERSION >= 12) {
)->execute([$setting->user_id, $tree->getTreeId(), 'canedit', $value]);
}
}
- } catch (\ErrorException $ex) {
+ } catch (Throwable $ex) {
DebugBar::addThrowable($ex);
// Invalid serialized data?