Skip to content

Commit

Permalink
Hopefully fix Instagram exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Jan 12, 2021
1 parent bc6fa88 commit fbc4ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fbc4ebe

Please sign in to comment.