File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2626from typing import Any
2727
2828from etils import epath
29- from tensorflow_datasets .core .utils import py_utils
3029from tensorflow_datasets .core .utils import version as version_lib
3130
3231_NAME_CLASS = r'[a-zA-Z][\w]*'
@@ -185,8 +184,9 @@ def _dataset_name_and_kwargs_from_name_str(
185184 raise ValueError ('Dataset %s: cannot pass %s twice.' % (name , attr ))
186185 kwargs [attr ] = val
187186 return name , kwargs
188- except Exception as e : # pylint: disable=broad-except
189- py_utils .reraise (e , prefix = err_msg ) # pytype: disable=bad-return-type
187+ except Exception as e :
188+ e .add_note (err_msg )
189+ raise e
190190
191191
192192@dataclasses .dataclass (order = True )
Original file line number Diff line number Diff line change 2424from tensorflow_datasets .core import constants
2525from tensorflow_datasets .core import naming
2626from tensorflow_datasets .core .utils import file_utils
27- from tensorflow_datasets .core .utils import read_config
2827
2928_DATA_DIR = epath .Path ('/a' )
3029_DATASET_NAME = 'my_ds'
You can’t perform that action at this time.
0 commit comments