| 1234567891011121314151617181920212223242526 |
- # This Python file uses the following encoding: utf-8
- # @author runhey
- # github https://github.com/runhey
- from pydantic import BaseModel, ValidationError, validator, Field
- from tasks.Component.config_base import MultiLine
- from module.logger import logger
- class Error(BaseModel):
- handle_error: bool = Field(default=True,
- description='handle_error_help')
- error_repeated: bool = Field(default=False,
- description='是否多次出错关闭模拟器')
- save_error: bool = Field(default=True,
- description='')
- screenshot_length: int = Field(
- default=1,
- description='',
- ge=1,
- )
- notify_enable: bool = Field(default=False,
- description='')
- notify_config: MultiLine = Field(default='provider: null', description='notify_config_help')
|