id: python-app-sql-exceptions

info:
  name: Python App - SQL Exception
  author: geeknik
  severity: medium
  description: A generic SQL exception was discovered in Python according to PEP 249.
  reference:
    - https://www.python.org/dev
    - https://peps.python.org/pep-0249/
  tags: file,logs,python,sql
file:
  - extensions:
      - all

    extractors:
      - type: regex
        name: exception
        part: body
        regex:
          - 'DataError'
          - 'IntegrityError'
          - 'ProgrammingError'
          - 'OperationalError'

# digest: 4a0a00473045022079a46e42dc0321daff4fa00b021a299f5f746c2faed50fcba78acb826f35b261022100e777c196aed8119194c365ea967487c6795b47902f0d29873ade5a16fc1125cd:922c64590222798bb761d5b6d8e72950
