Skip to content

Commit 97a92ed

Browse files
committed
style: improve readability of raise errors
1 parent ad8b6a5 commit 97a92ed

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/dask_dirac/_dask.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ def save_to_parquet(
354354
else:
355355
# TODO: RUCIO
356356
# TODO: DIRAC
357-
raise NotImplementedError("Caching is not implemented yet for %s", cache_location)
357+
raise NotImplementedError(
358+
"Caching is not implemented yet for %s", cache_location
359+
)
358360

359361

360362
def load_from_parquet(filename: str, cache_location: str) -> pd.DataFrame:
@@ -368,7 +370,9 @@ def load_from_parquet(filename: str, cache_location: str) -> pd.DataFrame:
368370
else:
369371
# TODO: RUCIO
370372
# TODO: DIRAC
371-
raise NotImplementedError("Caching is not implemented yet for %s", cache_location)
373+
raise NotImplementedError(
374+
"Caching is not implemented yet for %s", cache_location
375+
)
372376

373377

374378
def get_cached_files(cache_location: str) -> list[str]:
@@ -380,7 +384,9 @@ def get_cached_files(cache_location: str) -> list[str]:
380384
else:
381385
# TODO: RUCIO
382386
# TODO: DIRAC
383-
raise NotImplementedError("Caching is not implemented yet for %s", cache_location)
387+
raise NotImplementedError(
388+
"Caching is not implemented yet for %s", cache_location
389+
)
384390

385391
# remove parquet extension and get file name from path
386392
file_list = [c[c.rfind("/") + 1 : -8] for c in file_list]

0 commit comments

Comments
 (0)