Skip to content

Commit

Permalink
Update Instagram.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ZipDriver authored Mar 23, 2018
1 parent c527b5b commit e84ce2a
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 @@ -591,7 +591,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 e84ce2a

Please sign in to comment.