From e84ce2ad7b121fa6a583187b2967ac52b7a9cc94 Mon Sep 17 00:00:00 2001 From: ZipDriver Date: Fri, 23 Mar 2018 10:12:37 +0200 Subject: [PATCH] Update Instagram.php --- src/InstagramScraper/Instagram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InstagramScraper/Instagram.php b/src/InstagramScraper/Instagram.php index bc172455..3d621258 100644 --- a/src/InstagramScraper/Instagram.php +++ b/src/InstagramScraper/Instagram.php @@ -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']); }