fangwenxue
V2EX  ›  问与答

pyppeteer 异常导致程序无法退出

  •  
  •   fangwenxue · Sep 30, 2020 · 1261 views
    This topic created in 2089 days ago, the information mentioned may be changed or developed.

                try:
                    asyncio.get_event_loop().run_until_complete(func(**params))
                except Exception as e:
                    logging.warning(e)
                finally:
                    exit(0)
    
    • 现在程序一直卡着没有退出
    • 异常后怎样退出程序
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2502 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 67ms · UTC 09:39 · PVG 17:39 · LAX 02:39 · JFK 05:39
    ♥ Do have faith in what you're doing.