Skip to content

Commit

Permalink
downloader: use Datasets::Error as the parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 19, 2023
1 parent 3efb2b2 commit 588452c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/datasets/downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
require "net/http"
require "pathname"

require_relative "error"

module Datasets
class Downloader
class TooManyRedirects < StandardError; end
class TooManyRedirects < Error; end

def initialize(url)
if url.is_a?(URI::Generic)
Expand Down

0 comments on commit 588452c

Please sign in to comment.