Remove code duplication in casremote.py
This replaces the only call to _fetch_blob()
with _CASBatchRead
and then removes _fetch_blob()
, reducing code duplication. _fetch_blob()
also had a bug in its BlobNotFound
error handling code path, which is fixed by the switch to _CASBatchRead
. The BlobNotFound
error handling code path in the latter is covered by the test suite.