Skip to content

Commit

Permalink
Merge pull request #304 from ZipDriver/master
Browse files Browse the repository at this point in the history
Update Instagram.php
  • Loading branch information
raiym authored Mar 23, 2018
2 parents 057de02 + e84ce2a commit 5f08f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InstagramScraper/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ public function getAccount($username)

$userArray = json_decode($response->raw_body, true, 512, JSON_BIGINT_AS_STRING);
if (!isset($userArray['graphql']['user'])) {
throw new InstagramException('Account with this username does not exist');
throw new InstagramNotFoundException('Account with this username does not exist', 404);
}
return Account::create($userArray['graphql']['user']);
}
Expand Down

0 comments on commit 5f08f64

Please sign in to comment.