In the same way that one can do a `if 'PATH' in os...
# ask-community
t
In the same way that one can do a
if 'PATH' in os.environ.keys()
is there a way to test the names of blocks that have been stored? Is there a best practise use case here? Or is it just a case one has to catch the exception that is raised if it does not exist?
r
Currently you have to catch the exception on load
ah wait, try
Copy code
blocks = await client.read_block_documents()
t
Awesome! Thanks a lot for that -- I will give it a go 🙂
👍 1