Giter VIP home page Giter VIP logo

nonebot_plugin_animeres's Issues

发现个问题 如果回复序号以外的字符就会出现问题 是否可以优化一下

正常情况下 触发插件后会让你按序号选择资源类型 超出可选序号后会有提示
可是如果输入了其他的字符后插件就会报错 并且此次资源搜索会结束。。

File "/admin/Nonebot_Bot_MayaFey/content/plugins/nonebot_plugin_animeres/init.py", line 33, in _
if animes := cartoons.get((int(index) - 1) if index.isdigit() else index):
File "/admin/Nonebot_Bot_MayaFey/content/plugins/nonebot_plugin_animeres/cartoon.py", line 121, in get
return Cartoons(self.sort[key])
KeyError: '游戏'

是否可以优化一下 让错误的字符能有个提示 或者有更好的解决方案

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.