config_error.py 584 B

123456789101112131415
  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=False,
  8. description='none')
  9. save_error: bool = Field(default=False,
  10. description='none')
  11. screenshot_length: int = Field(default=1,
  12. description='The number of recent screenshots to save when something goes wrong')