mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix exception type catched from Exception to proper PDOException
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user