diff --git a/app/code/Magento/CurrencySymbol/Controller/Adminhtml/System/Currency/FetchRates.php b/app/code/Magento/CurrencySymbol/Controller/Adminhtml/System/Currency/FetchRates.php index a99c5d696096d..f6463d67084a9 100644 --- a/app/code/Magento/CurrencySymbol/Controller/Adminhtml/System/Currency/FetchRates.php +++ b/app/code/Magento/CurrencySymbol/Controller/Adminhtml/System/Currency/FetchRates.php @@ -22,7 +22,7 @@ public function execute() $service = $this->getRequest()->getParam('rate_services'); $this->_getSession()->setCurrencyRateService($service); if (!$service) { - throw new \Exception(__('Please specify a correct Import Service.')); + throw new \Magento\Framework\Exception\LocalizedException(__('Please specify a correct Import Service.')); } try { /** @var \Magento\Directory\Model\Currency\Import\ImportInterface $importModel */