Create python-app-sql-exceptions.yaml
parent
c64a8e1c73
commit
57183b4b50
|
@ -0,0 +1,23 @@
|
|||
id: python-app-sql-exceptions
|
||||
|
||||
info:
|
||||
name: Python App SQL Exception Check
|
||||
description: Generic check for SQL exceptions in Python according to PEP 249
|
||||
reference: https://www.python.org/dev
|
||||
author: geeknik
|
||||
severity: medium
|
||||
tags: file,logs,python,sql
|
||||
|
||||
file:
|
||||
- extensions:
|
||||
- all
|
||||
|
||||
extractors:
|
||||
- type: regex
|
||||
name: exception
|
||||
part: body
|
||||
regex:
|
||||
- 'DataError'
|
||||
- 'IntegrityError'
|
||||
- 'ProgrammingError'
|
||||
- 'OperationalError'
|
Loading…
Reference in New Issue