Skip to content

Instantly share code, notes, and snippets.

@LouisdeLooze
Created October 16, 2025 13:05
Show Gist options
  • Select an option

  • Save LouisdeLooze/2a8830d2e97fcb17d5b9e4eb3ffd7619 to your computer and use it in GitHub Desktop.

Select an option

Save LouisdeLooze/2a8830d2e97fcb17d5b9e4eb3ffd7619 to your computer and use it in GitHub Desktop.
Patch for Geissweb issue
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