V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fangwenxue
V2EX  ›  问与答

pyppeteer 异常导致程序无法退出

  •  
  •   fangwenxue · Sep 30, 2020 · 1180 views
    This topic created in 2047 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   ·   3085 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 11:05 · PVG 19:05 · LAX 04:05 · JFK 07:05
    ♥ Do have faith in what you're doing.