Skip to content

Commit b62bd26

Browse files
author
Ben Slaughter
committed
Validator initialize_data rescues uri error
1 parent b1de99f commit b62bd26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/json-schema/validator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def initialize_data(data)
578578
begin
579579
json_uri = Util::URI.normalized_uri(data)
580580
data = self.class.parse(custom_open(json_uri))
581-
rescue JSON::Schema::JsonLoadError
581+
rescue JSON::Schema::JsonLoadError, JSON::Schema::UriError
582582
# Silently discard the error - use the data as-is
583583
end
584584
end

0 commit comments

Comments
 (0)