fangwenxue
V2EX  ›  问与答

pyppeteer 异常导致程序无法退出

  •  
  •   fangwenxue · Sep 30, 2020 · 1229 views
    This topic created in 2072 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   ·   2748 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 15:41 · PVG 23:41 · LAX 08:41 · JFK 11:41
    ♥ Do have faith in what you're doing.