Skip to content

Commit 2c3ad95

Browse files
authored
Merge pull request #2139 from cultuurnet/III-6896-handle-all-exceptions
III-6896 Handle all exceptions when getting image for Kinepolis movie.
2 parents 340ec1e + 842a88e commit 2c3ad95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Kinepolis/KinepolisService.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use CultuurNet\UDB3\Event\Productions\GroupEventsAsProduction;
1616
use CultuurNet\UDB3\Event\Productions\ProductionRepository;
1717
use CultuurNet\UDB3\Kinepolis\Client\KinepolisClient;
18-
use CultuurNet\UDB3\Kinepolis\Exception\ImageNotFound;
1918
use CultuurNet\UDB3\Kinepolis\Mapping\MappingRepository;
2019
use CultuurNet\UDB3\Kinepolis\Parser\MovieParser;
2120
use CultuurNet\UDB3\Kinepolis\Parser\PriceParser;
@@ -161,8 +160,8 @@ private function process(ParsedMovie $parsedMovie, string $token): void
161160
try {
162161
$addImage = $this->uploadImage($token, $parsedMovie, $eventId);
163162
$commands[] = $addImage;
164-
} catch (ImageNotFound $imageNotFound) {
165-
$this->logger->error($imageNotFound->getMessage());
163+
} catch (Exception $exception) {
164+
$this->logger->error($exception->getMessage());
166165
}
167166

168167
$commands[] = $this->getLinkToProductionCommand($parsedMovie->getTitle()->toString(), $eventId);

0 commit comments

Comments
 (0)