@@ -162,9 +162,7 @@ def _get_grid_url(self, cube: Cube) -> tuple[str, str]:
162162 f"necessary to download the ICON horizontal grid file:\n "
163163 f"{ cube } "
164164 )
165- raise ValueError (
166- msg ,
167- )
165+ raise ValueError (msg )
168166 grid_url = cube .attributes [self .GRID_FILE_ATTR ]
169167 parsed_url = urlparse (grid_url )
170168 grid_name = Path (parsed_url .path ).name
@@ -223,9 +221,7 @@ def _get_path_from_facet(
223221 f"relative to the auxiliary_data_dir "
224222 f"'{ self .session ['auxiliary_data_dir' ]} ')"
225223 )
226- raise FileNotFoundError (
227- msg ,
228- )
224+ raise FileNotFoundError (msg )
229225 path = new_path
230226 return path
231227
@@ -650,9 +646,7 @@ def _add_coord_from_grid_file(self, cube: Cube, coord_name: str) -> None:
650646 f"'{ coord_name } ', cube does not contain a single unnamed "
651647 f"dimension:\n { cube } "
652648 )
653- raise ValueError (
654- msg ,
655- )
649+ raise ValueError (msg )
656650 coord_dims : tuple [()] | tuple [int ] = ()
657651 for idx in range (cube .ndim ):
658652 if not cube .coords (dimensions = idx , dim_coords = True ):
@@ -678,9 +672,7 @@ def _add_time(self, cube: Cube, cubes: CubeList) -> Cube:
678672 f"'{ self .vardef .short_name } ', cube and other cubes in file do not "
679673 f"contain it"
680674 )
681- raise ValueError (
682- msg ,
683- )
675+ raise ValueError (msg )
684676
685677 def _get_z_coord (
686678 self ,
@@ -987,9 +979,7 @@ def _get_previous_timestep(self, datetime_point: datetime) -> datetime:
987979 f"got { datetime_point } . Use `shift_time=false` in the "
988980 f"recipe to disable this feature"
989981 )
990- raise ValueError (
991- msg ,
992- )
982+ raise ValueError (msg )
993983
994984 # Decadal data
995985 if "dec" in freq :
@@ -1082,9 +1072,7 @@ def _fix_invalid_time_units(time_coord: Coord) -> None:
10821072 f"Expected time units '{ time_format } ' in input file, got "
10831073 f"'{ t_unit } '"
10841074 )
1085- raise ValueError (
1086- msg ,
1087- )
1075+ raise ValueError (msg )
10881076 new_t_units = Unit (
10891077 "days since 1850-01-01" ,
10901078 calendar = "proleptic_gregorian" ,
0 commit comments