clay icon indicating copy to clipboard operation
clay copied to clipboard

Invalid assertion

Open mattbasta opened this issue 7 years ago • 0 comments

Consider the following check:

https://github.com/uber/clay/blob/master/clay/database.py#L18

This line should be written as:

if dbapi_name not in ('psycopg2', 'MySQLdb', 'sqlite3'):

not dbapi_name will evaluate to a boolean, which will never be present in the tuple.

mattbasta avatar Jul 11 '16 20:07 mattbasta