Created
October 16, 2025 13:05
-
-
Save LouisdeLooze/2a8830d2e97fcb17d5b9e4eb3ffd7619 to your computer and use it in GitHub Desktop.
Patch for Geissweb issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/vendor/geissweb/module-euvat/Model/Setup/RatesCollector.php b/vendor/geissweb/module-euvat/Model/Setup/RatesCollector.php | |
| --- a/vendor/geissweb/module-euvat/Model/Setup/RatesCollector.php | |
| +++ b/vendor/geissweb/module-euvat/Model/Setup/RatesCollector.php (date 1737557804000) | |
| @@ -78,8 +78,12 @@ | |
| { | |
| $response = $this->doRequest('standard'); | |
| $responseContent = $response->getBody()->getContents(); | |
| - | |
| - $rates = $this->serializer->unserialize($responseContent); | |
| + | |
| + try { | |
| + $rates = $this->serializer->unserialize($responseContent); | |
| + } catch (\Exception $e) { | |
| + $rates = null; | |
| + } | |
| $this->logger->customLog('[RatesCollector] rates', $rates); | |
| if ($rates) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment