forked from LBRYCommunity/lbry-sdk
return failure message for invalid blob hash in blob_delete
This commit is contained in:
parent
4483380352
commit
3f7e466c97
1 changed files with 2 additions and 1 deletions
|
@ -2588,7 +2588,8 @@ class Daemon(metaclass=JSONRPCServerType):
|
|||
Returns:
|
||||
(str) Success/fail message
|
||||
"""
|
||||
|
||||
if not blob_hash or not is_valid_blobhash(blob_hash):
|
||||
return f"Invalid blob hash to delete '{blob_hash}'"
|
||||
streams = self.stream_manager.get_filtered_streams(sd_hash=blob_hash)
|
||||
if streams:
|
||||
await self.stream_manager.delete_stream(streams[0])
|
||||
|
|
Loading…
Reference in a new issue