albertvillanova HF staff commited on
Commit
e1bfd57
1 Parent(s): c293a56

Raise DefunctDatasetError (#6)

Browse files

- Raise DefunctDatasetError (6de39857b7ab8eb508cf606fa0a3733c81de24bc)

Files changed (1) hide show
  1. amazon_us_reviews.py +4 -0
amazon_us_reviews.py CHANGED
@@ -19,6 +19,7 @@
19
  import csv
20
 
21
  import datasets
 
22
 
23
 
24
  _CITATION = """\
@@ -129,6 +130,9 @@ class AmazonUSReviews(datasets.GeneratorBasedBuilder):
129
  ]
130
 
131
  def _info(self):
 
 
 
132
  return datasets.DatasetInfo(
133
  description=_DESCRIPTION,
134
  features=datasets.Features(
 
19
  import csv
20
 
21
  import datasets
22
+ from datasets.exceptions import DefunctDatasetError
23
 
24
 
25
  _CITATION = """\
 
130
  ]
131
 
132
  def _info(self):
133
+ raise DefunctDatasetError(
134
+ "Dataset 'amazon_us_reviews' is defunct and no longer accessible due to the decision of data providers"
135
+ )
136
  return datasets.DatasetInfo(
137
  description=_DESCRIPTION,
138
  features=datasets.Features(