mirror of https://github.com/nucypher/nucypher.git
Need to just cast ordinarily here; otherwise we miss the subclass method.
parent
05ca31b14b
commit
ecff39bbdc
|
@ -459,7 +459,7 @@ class LocalFileBasedNodeStorage(NodeStorage):
|
||||||
def __write_metadata(self, filepath: str, node):
|
def __write_metadata(self, filepath: str, node):
|
||||||
os.makedirs(os.path.dirname(filepath), exist_ok=True)
|
os.makedirs(os.path.dirname(filepath), exist_ok=True)
|
||||||
with open(filepath, "wb") as f:
|
with open(filepath, "wb") as f:
|
||||||
f.write(self.serializer(self.character_class.__bytes__(node)))
|
f.write(self.serializer(bytes(node)))
|
||||||
self.log.info("Wrote new node metadata to filesystem {}".format(filepath))
|
self.log.info("Wrote new node metadata to filesystem {}".format(filepath))
|
||||||
return filepath
|
return filepath
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue