From 1c44a514a5ceac68fc87874a7ab273414e55ea86 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 10 Oct 2020 08:43:20 +0000 Subject: [PATCH] Fixed encrypted uploads --- src/communicatorutils/uploadblocks/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communicatorutils/uploadblocks/__init__.py b/src/communicatorutils/uploadblocks/__init__.py index 0440c526..b4e9806d 100755 --- a/src/communicatorutils/uploadblocks/__init__.py +++ b/src/communicatorutils/uploadblocks/__init__.py @@ -67,7 +67,7 @@ def upload_blocks_from_communicator(comm_inst: 'OnionrCommunicatorDaemon'): session = session_manager.add_session(bl) for _ in range(min(len(kv.get('onlinePeers')), 6)): try: - if not block.Block(bl).isEncrypted(): + if not block.Block(bl).isEncrypted: peer = onlinepeers.pick_online_peer(kv) if peer in kv.get('plaintextDisabledPeers'): logger.info(f"Cannot upload plaintext block to peer that denies it {peer}") # noqa