|
20 | 20 | use Magento\Store\Model\ScopeInterface;
|
21 | 21 | use Magento\Store\Model\StoreManagerInterface;
|
22 | 22 | use Throwable;
|
| 23 | +use Zend_Db_Adapter_Exception; |
23 | 24 |
|
24 | 25 | class Data extends AbstractHelper
|
25 | 26 | {
|
@@ -258,15 +259,15 @@ public function collectModuleConfig(): array
|
258 | 259 | try {
|
259 | 260 | $this->config[$storeId]['enabled'] = $this->scopeConfig->getValue('sentry/environment/enabled', ScopeInterface::SCOPE_STORE)
|
260 | 261 | ?? $this->deploymentConfig->get('sentry') !== null;
|
261 |
| - } catch (TableNotFoundException|FileSystemException|RuntimeException|DomainException $e) { |
| 262 | + } catch (TableNotFoundException|FileSystemException|RuntimeException|DomainException|Zend_Db_Adapter_Exception $e) { |
262 | 263 | $this->config[$storeId]['enabled'] = $this->deploymentConfig->get('sentry') !== null;
|
263 | 264 | }
|
264 | 265 |
|
265 | 266 | foreach ($this->configKeys as $key => $config) {
|
266 | 267 | try {
|
267 | 268 | $value = $this->scopeConfig->getValue('sentry/environment/'.$key, ScopeInterface::SCOPE_STORE)
|
268 | 269 | ?? $this->deploymentConfig->get('sentry/'.$key);
|
269 |
| - } catch (TableNotFoundException|FileSystemException|RuntimeException|DomainException $e) { |
| 270 | + } catch (TableNotFoundException|FileSystemException|RuntimeException|DomainException|Zend_Db_Adapter_Exception $e) { |
270 | 271 | $value = $this->deploymentConfig->get('sentry/'.$key);
|
271 | 272 | }
|
272 | 273 |
|
@@ -392,7 +393,7 @@ public function getStore(): ?\Magento\Store\Api\Data\StoreInterface
|
392 | 393 | {
|
393 | 394 | try {
|
394 | 395 | return $this->storeManager->getStore();
|
395 |
| - } catch (DomainException|NoSuchEntityException $e) { |
| 396 | + } catch (DomainException|Zend_Db_Adapter_Exception|NoSuchEntityException $e) { |
396 | 397 | // If the store is not available, return null
|
397 | 398 | return null;
|
398 | 399 | }
|
|
0 commit comments