diff --git a/includes/utilities.php b/includes/utilities.php index 52cca2b..5978072 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -117,9 +117,6 @@ function validateApiResponse($responseData) { * @param PDOStatement $insertStmt A prepared statement for the idempotent * insert (`INSERT … ON CONFLICT(id) DO NOTHING`) * - * @throws LogEntryIncompleteException If a vault entry is missing timestamp - * or details.title - * * @return void */ function processLogEntries($logEntries, $user, $insertStmt) { @@ -146,9 +143,8 @@ function processLogEntries($logEntries, $user, $insertStmt) { } if ($timestamp === null || $description === null) { - throw new LogEntryIncompleteException( - "Entry $id missing timestamp or details.title." - ); + consoleLog('Skipping entry ' . $id . ' missing timestamp or details.title: ' . print_r($entry, true)); + continue; } $insertStmt->bindValue(':id', $id);