GithubHelp home page GithubHelp logo

Comments (2)

hect0x7 avatar hect0x7 commented on August 25, 2024

好腻害的ai,不过仔细读了一下,感觉ai的全局联系能力还不太行,有些问题明显是只根据上下文提出来的,略显草率。

但有几点是可以改进下:
插件的入参校验问题,要不要抛异常?
zip插件在删除文件和文件夹时,增加一次判空校验。

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

插件的入参校验,不抛异常主要是为了兼容一种情况:用户配置了插件,但是没有配置核心参数。
就比如,用户配置了插件,插件里用到了一个环境变量,可能过了一段时间这个环境变量不在了。
那么这时插件是选择【空参不执行】好,还是【空参就报错】好?

我打算增加一个异常和配置项,当这个配置项开启时,【空参就报错】,否则使用【空参不执行】。
具体实现思路:由插件专门抛出这个异常,由option catch并根据配置项进行处理或丢弃。

from jmcomic-crawler-python.

Related Issues (20)

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.