yuudi/yobot

[BUG] 用户管理界面无法适配python3.6

Closed this issue · 1 comments

https://github.com/pcrbot/yobot/blob/a20d5974be09ce504cf3b660674649442cc309a9/src/client/ybplugins/settings.py#L255

asyncio.get_running_loop()方法是python3.7以后提供的,如果在3.6下运行会报错导致用户管理界面无法访问。
AttributeError: module 'asyncio' has no attribute 'get_running_loop'

建议替换为asyncio.get_event_loop()。

yuudi commented

fixed