Merge pull request #2216 from lbryio/fix-connection-status-startup-error

fix connections status raising an error during startup
This commit is contained in:
Jack Robison 2019-06-07 13:55:54 -04:00 committed by GitHub
commit 06a9770504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ class BlobComponent(Component):
count = len(self.blob_manager.completed_blob_hashes)
return {
'finished_blobs': count,
'connections': self.blob_manager.connection_manager.status
'connections': {} if not self.blob_manager else self.blob_manager.connection_manager.status
}