Skip to content

Commit

Permalink
catch nil type error
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Oct 18, 2016
1 parent d1be7e7 commit 269123a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/values/manifest_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def jsonld_response

def jsonld_metadata
@jsonld_metadata ||= JSON.parse(jsonld_response)
rescue JSON::ParserError
rescue JSON::ParserError, TypeError
@jsonld_metadata = nil
end

Expand Down

0 comments on commit 269123a

Please sign in to comment.