diff --git a/src/Command/UpdateDatabaseCommand.php b/src/Command/UpdateDatabaseCommand.php index 0471de8..a14e375 100644 --- a/src/Command/UpdateDatabaseCommand.php +++ b/src/Command/UpdateDatabaseCommand.php @@ -115,7 +115,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int $io->section(sprintf('Update "%s" database', $database)); - $this->downloader->download($this->databases[$database]['url'], $this->databases[$database]['path']); + if (empty($this->databases[$database]['license'])) { + $io->warning(sprintf('`GeoIP Database %s has no maxmind license key', $database)); + } else { + $this->downloader->download($this->databases[$database]['url'], $this->databases[$database]['path']); + } $io->comment(sprintf('Database %s updated', $database)); }