Cut condition to display any name that is return

In case of MySQLdb is renamed in mysqlclient. In that case, the
integration tests will catch this the day we update the connector
version.
This commit is contained in:
Laurent Indermuehle 2023-01-27 17:16:58 +01:00
commit 37408c8eb3
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -47,9 +47,6 @@ def get_connector_name(connector):
if connector is None or not hasattr(connector, '__name__'):
return 'Unknown'
if connector.__name__ not in ['pymysql', 'MySQLdb']:
return 'Unknown'
return connector.__name__