psycopg2: broaden exceptions (#8018)

This commit is contained in:
DavidKorczynski 2022-07-16 18:48:57 +01:00 committed by GitHub
parent 5405d3b6e0
commit aabda0f17f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -31,8 +31,14 @@ def TestInput(data):
q1.join([i1, i2])
query.format(q1, i3, i4)
comp = sql.Composed([query, i5])
except (TypeError, ValueError) as e:
pass
except (
AttributeError,
TypeError,
ValueError,
KeyError,
IndexError
) as e:
pass
def main():
atheris.instrument_all()