fix 3262: protobuf SerializeToString() returns bytes..
This commit is contained in:
@@ -1292,7 +1292,7 @@ class Abstract_Wallet(PrintError):
|
||||
except OSError as exc:
|
||||
if exc.errno != errno.EEXIST:
|
||||
raise
|
||||
with open(os.path.join(path, key), 'w') as f:
|
||||
with open(os.path.join(path, key), 'wb') as f:
|
||||
f.write(pr.SerializeToString())
|
||||
# reload
|
||||
req = self.get_payment_request(addr, config)
|
||||
|
||||
Reference in New Issue
Block a user