Skip to content

Commit

Permalink
Merge pull request #933 from Shopify/uk-suppress-json-parsing-errors
Browse files Browse the repository at this point in the history
Handle gracefully if we get unparsable JSON
  • Loading branch information
paracycle committed May 13, 2022
2 parents c24f5ca + 8750c75 commit 55175c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tapioca/static/symbol_table_parser.rb
Expand Up @@ -16,6 +16,8 @@ def self.parse_json(json_string)
parser = SymbolTableParser.new
parser.parse_object(obj)
parser.symbols
rescue JSON::ParserError
Set.new
end

sig { returns(T::Set[String]) }
Expand Down

0 comments on commit 55175c3

Please sign in to comment.