Skip to main content

Documentation Index

Fetch the complete documentation index at: https://private-04b27de1.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

optional_import_block

optional_import_block() -> Generator[Result, NoneNone]
Guard a block of code to suppress ImportErrors A context manager to temporarily suppress ImportErrors.
Use this to attempt imports without failing immediately on missing modules.
Example:
with optional_import_block(): <br/>    import some_module
    import some_other_module