https://prefect.io logo
#prefect-community
Title
# prefect-community
t

Tim Galvin

01/12/2023, 8:21 AM
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

redsquare

01/12/2023, 8:42 AM
Currently you have to catch the exception on load
ah wait, try
Copy code
blocks = await client.read_block_documents()
t

Tim Galvin

01/12/2023, 8:53 AM
Awesome! Thanks a lot for that -- I will give it a go 🙂
👍 1
3 Views