config_error.py 528 B

1234567891011121314151617
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from pydantic import BaseModel, ValidationError, validator, Field
  5. from module.logger import logger
  6. class Error(BaseModel):
  7. handle_error: bool = Field(default=True,
  8. description='handle_error_help')
  9. save_error: bool = Field(default=True,
  10. description='')
  11. screenshot_length: int = Field(default=1,
  12. description='')