Skip to content

Commit

Permalink
Return nil for strange FT 500 errors (#12948)
Browse files Browse the repository at this point in the history
* return nil for strange FT case

* rubocops
  • Loading branch information
LindseySaari authored Jun 9, 2023
1 parent e3bbdbe commit 48726b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/common/models/redis_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def self.find(redis_key = nil)
unless attributes.is_a?(Hash)
Rails.logger.info("redis_namespace: #{redis_namespace.inspect} - response: #{response}
- oj parsed attributes: #{attributes} redis_key: #{redis_key}")

nil if redis_key.empty? # Case where session[:token] is empty and response returns 1
end

object = new(attributes, true)
Expand Down

0 comments on commit 48726b2

Please sign in to comment.