From df2339231aa50a8ae9a3b8b2e431fbc0766474d8 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Fri, 4 May 2018 00:47:08 -0400 Subject: [PATCH] magic --- lbrynet/core/Wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 889e7514f..8dc665e93 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -125,7 +125,7 @@ class Wallet(object): s3_height = (len(raw_headers) / HEADER_SIZE) - 1 local_height = self.local_header_file_height() if s3_height > local_height: - with open(os.path.join(self.config.path, "blockchain_headers"), "w") as headers_file: + with open(os.path.join(self.config.path, "blockchain_headers"), "wb") as headers_file: headers_file.write(raw_headers) log.info("updated headers from s3") else: