From dd9a20dc3a56cd2b60cd450a4308b14aab551497 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 16 Jun 2017 14:46:17 +0200 Subject: [PATCH] Fix exception type catched from Exception to proper PDOException --- misc/update/nix/multiprocessing/.do_not_run/switch.php | 2 +- nntmux/libraries/Forking.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { } } }