Skip to content

Commit

Permalink
Fixes issue with Exception being thrown when no DSN is set in a dev e…
Browse files Browse the repository at this point in the history
…nvironment
  • Loading branch information
odannyc authored Oct 11, 2017
1 parent a0676f0 commit 31c199f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ class Component extends \yii\base\Component

public function init()
{
$this->validateDsn();

if (!$this->enabled) {
return;
}

$this->validateDsn();
$this->setRavenClient();
$this->setEnvironmentOptions();
$this->generatePublicDsn();
Expand Down

0 comments on commit 31c199f

Please sign in to comment.