fix error in blob_delete
This commit is contained in:
parent
d565aa0b3f
commit
2b7e135839
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,8 @@ class DiskBlobManager(object):
|
||||||
def delete_blobs(self, blob_hashes):
|
def delete_blobs(self, blob_hashes):
|
||||||
bh_to_delete_from_db = []
|
bh_to_delete_from_db = []
|
||||||
for blob_hash in blob_hashes:
|
for blob_hash in blob_hashes:
|
||||||
|
if not blob_hash:
|
||||||
|
continue
|
||||||
if self._node_datastore is not None:
|
if self._node_datastore is not None:
|
||||||
try:
|
try:
|
||||||
self._node_datastore.completed_blobs.remove(blob_hash.decode('hex'))
|
self._node_datastore.completed_blobs.remove(blob_hash.decode('hex'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue