Skip to content

Commit

Permalink
Fixes Smile-SA#2390, update a try/catch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
vahonc committed Jan 28, 2022
1 parent 1d7671a commit 4bc66fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ public function saveLink($linkData)
$linkData['delete_after'] = $this->formatDate($linkData['delete_after']);
}

$connection->insertOnDuplicate(
$this->getMainTable(),
$linkData,
array_keys($linkData)
);
try {
$connection->insertOnDuplicate(
$this->getMainTable(),
$linkData,
array_keys($linkData)
);
} catch (\Exception $e) {
;
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ private function logEvent($productCollection, int $storeId): void

$eventData = ['page' => $pageData, 'session' => $sessionData];

try {
$this->service->addEvent($eventData);
} catch (\Exception $e) {
;
}
$this->service->addEvent($eventData);
}
}

Expand Down

0 comments on commit 4bc66fb

Please sign in to comment.