fangwenxue
V2EX  ›  问与答

pyppeteer 异常导致程序无法退出

  •  
  •   fangwenxue · Sep 30, 2020 · 1303 views
    This topic created in 2116 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   ·   916 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:24 · PVG 04:24 · LAX 13:24 · JFK 16:24
    ♥ Do have faith in what you're doing.