fangwenxue
V2EX  ›  问与答

pyppeteer 异常导致程序无法退出

  •  
  •   fangwenxue · Sep 30, 2020 · 1203 views
    This topic created in 2058 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   ·   5123 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:20 · PVG 09:20 · LAX 18:20 · JFK 21:20
    ♥ Do have faith in what you're doing.