diff --git a/html/modules/custom/ghi_content/src/RemoteSource/RemoteSourceBaseHpcContentModule.php b/html/modules/custom/ghi_content/src/RemoteSource/RemoteSourceBaseHpcContentModule.php
index e92ec36f3..5cf2411e9 100644
--- a/html/modules/custom/ghi_content/src/RemoteSource/RemoteSourceBaseHpcContentModule.php
+++ b/html/modules/custom/ghi_content/src/RemoteSource/RemoteSourceBaseHpcContentModule.php
@@ -463,8 +463,14 @@ public function getFileContent($uri) {
$basic_auth['pass'],
];
}
- $response = $this->httpClient->get($uri, $options);
- return $response->getBody();
+ try {
+ $response = $this->httpClient->get($uri, $options);
+ return $response->getBody();
+ }
+ catch (ClientException $e) {
+ // The image wasn't found or something similar.
+ return NULL;
+ }
}
/**