From fbc4ebe4b266fb2f05582a5629e48def92551aa5 Mon Sep 17 00:00:00 2001 From: Stefan Sundin Date: Mon, 11 Jan 2021 20:26:02 -0800 Subject: [PATCH] Hopefully fix Instagram exception. --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index c915075..7bbef8a 100644 --- a/app.rb +++ b/app.rb @@ -506,8 +506,8 @@ response = Instagram.get("/graphql/query/", options) return [401, "The sessionid expired!"] if params.has_key?(:sessionid) && response.code == 302 - return [response.code, "Instagram user does not exist."] if !response.json["data"]["user"] raise(InstagramError, response) if !response.success? || !response.json? + return [response.code, "Instagram user does not exist."] if !response.json["data"]["user"] @data = response.json["data"]["user"] @user = CGI.unescape(username)