diff --git a/src/opnsense/scripts/routes/gateway_watcher.php b/src/opnsense/scripts/routes/gateway_watcher.php index 54ea5202c..8854a8504 100755 --- a/src/opnsense/scripts/routes/gateway_watcher.php +++ b/src/opnsense/scripts/routes/gateway_watcher.php @@ -59,7 +59,7 @@ while (1) { try { $status = dpinger_status(); - } catch (Exception $e) { + } catch (\Error $e) { sleep($poll); continue; }