raise ValueError instead of custom error class
@@ -37,7 +37,7 @@ def _copy_btw_filesystems(input_opener, output_opener, BLOCK_SIZE=10_000_000):
logger.debug(f"_copy_btw_filesystems copying block of {len(data)} bytes")
target.write(data)
except BlockSizeError as e:
- raise FSSpecOpenKwargsError(
+ raise ValueError(
"Server does not permit random access to this file via Range requests. "
'Try re-instantiating recipe with `fsspec_open_kwargs={"block_size": 0}`'
) from e
