2021-11-01 18:20:06 +00:00
|
|
|
id: python-app-sql-exceptions
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Python App SQL Exception Check
|
|
|
|
author: geeknik
|
|
|
|
severity: medium
|
2022-04-22 10:38:41 +00:00
|
|
|
description: Generic check for SQL exceptions in Python according to PEP 249
|
|
|
|
reference:
|
|
|
|
- https://www.python.org/dev
|
2021-11-01 18:20:06 +00:00
|
|
|
tags: file,logs,python,sql
|
|
|
|
|
|
|
|
file:
|
|
|
|
- extensions:
|
|
|
|
- all
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: exception
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- 'DataError'
|
|
|
|
- 'IntegrityError'
|
|
|
|
- 'ProgrammingError'
|
|
|
|
- 'OperationalError'
|