Skip to content

Commit

Permalink
fix for iazel#20
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrisler committed Aug 30, 2017
1 parent 7014fbb commit 0dd04db
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ protected function configure()

public function execute(InputInterface $inp, OutputInterface $out)
{
if (!$this->state->getAreaCode()) {
try {
// fix for #20 - https://github.com/Iazel/magento2-regenurl/issues/20
$this->state->getAreaCode();
} catch (\Exception $ex) {
$this->state->setAreaCode('adminhtml');
}

Expand Down

1 comment on commit 0dd04db

@El-Rico
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I have to upgrade in console after I make this edit?

Please sign in to comment.