diff --git a/misc/update/nix/multiprocessing/.do_not_run/switch.php b/misc/update/nix/multiprocessing/.do_not_run/switch.php index 62bb30d97..9dd4f6a17 100644 --- a/misc/update/nix/multiprocessing/.do_not_run/switch.php +++ b/misc/update/nix/multiprocessing/.do_not_run/switch.php @@ -327,7 +327,7 @@ function collectionCheck(&$pdo, $groupID) if ($pdo->queryOneRow(sprintf('SELECT id FROM collections_%d LIMIT 1', $groupID)) === false) { exit(); } - } catch (\Exception $e) { + } catch (\PDOException $e) { } } diff --git a/nntmux/libraries/Forking.php b/nntmux/libraries/Forking.php index 71d720340..2ae5f117c 100755 --- a/nntmux/libraries/Forking.php +++ b/nntmux/libraries/Forking.php @@ -601,7 +601,7 @@ class Forking extends \fork_daemon if ($this->pdo->queryOneRow(sprintf('SELECT id FROM collections_%d LIMIT 1', $group['id'])) !== false) { $this->work[] = ['id' => $group['id']]; } - } catch (\Exception $e) { + } catch (\PDOException $e) { } } }