https://bugs.documentfoundation.org/show_bug.cgi?id=163404
--- Comment #8 from [email protected] --- Oops, could really use an edit button here. Here is the code sample again in more clairty. from __future__ import annotations from ooodev.calc import CalcDoc from ooodev.loader import Lo from ooodev.uno_helper.importer import importer_shared_script def main(): _ = Lo.load_office(connector=Lo.ConnectPipe()) doc = None try: doc = CalcDoc.create_doc(visible=True) try: with importer_shared_script(): import Capitalise print("Success") except Exception as e: print(f"Error: {e}") except Exception as e: print(f"Error: {e}") finally: if doc: doc.close() Lo.close_office() if __name__ == "__main__": main() -- You are receiving this mail because: You are the assignee for the bug.
