All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m59s
Docker installs mysqlclient natively, so pymysql isn't needed. Use try/except to handle both environments gracefully.
6 lines
122 B
Python
6 lines
122 B
Python
try:
|
|
import pymysql
|
|
pymysql.install_as_MySQLdb()
|
|
except ImportError:
|
|
pass # Docker uses mysqlclient natively
|