From 0313f857baa598fd317448a13e10e83f02aee33e Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 15 Mar 2018 17:44:54 -0400 Subject: [PATCH] don't try to delete the stream terminator from the blob table when deleting a stream --- lbrynet/database/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/database/storage.py b/lbrynet/database/storage.py index f3adf32fa..4dce4b477 100644 --- a/lbrynet/database/storage.py +++ b/lbrynet/database/storage.py @@ -376,7 +376,7 @@ class SQLiteStorage(object): def delete_stream(self, stream_hash): sd_hash = yield self.get_sd_blob_hash_for_stream(stream_hash) stream_blobs = yield self.get_blobs_for_stream(stream_hash) - blob_hashes = [b.blob_hash for b in stream_blobs] + blob_hashes = [b.blob_hash for b in stream_blobs if b.blob_hash is not None] def _delete_stream(transaction): transaction.execute("delete from content_claim where stream_hash=? ", (stream_hash,))