diff --git a/src/Spryker/Zed/Customer/Business/Customer/Address.php b/src/Spryker/Zed/Customer/Business/Customer/Address.php index bbb35de7..de1905d7 100644 --- a/src/Spryker/Zed/Customer/Business/Customer/Address.php +++ b/src/Spryker/Zed/Customer/Business/Customer/Address.php @@ -15,7 +15,6 @@ use Orm\Zed\Customer\Persistence\SpyCustomerAddress; use Propel\Runtime\Collection\ObjectCollection; use Spryker\Zed\Customer\Business\Exception\AddressNotFoundException; -use Spryker\Zed\Customer\Business\Exception\CountryNotFoundException; use Spryker\Zed\Customer\Business\Exception\CustomerNotFoundException; use Spryker\Zed\Customer\Dependency\Facade\CustomerToCountryInterface; use Spryker\Zed\Customer\Dependency\Facade\CustomerToLocaleInterface; @@ -352,21 +351,12 @@ protected function getCustomerFromCustomerTransfer(CustomerTransfer $customerTra } /** - * @throws \Spryker\Zed\Customer\Business\Exception\CountryNotFoundException - * * @return int */ protected function getCustomerCountryId() { $countryTransfer = $this->countryFacade->getCountryByIso2Code($this->getIsoCode()); - if (!$countryTransfer->getIdCountry()) { - throw new CountryNotFoundException(sprintf( - 'Country not found for ISO code `%s`.', - $this->getIsoCode() - )); - } - return $countryTransfer->getIdCountry(); } diff --git a/src/Spryker/Zed/Customer/Business/Exception/CountryNotFoundException.php b/src/Spryker/Zed/Customer/Business/Exception/CountryNotFoundException.php deleted file mode 100644 index 6627b469..00000000 --- a/src/Spryker/Zed/Customer/Business/Exception/CountryNotFoundException.php +++ /dev/null @@ -1,14 +0,0 @@ -