python-module-mysql/test.py

14 lines
241 B
Python
Raw Normal View History

2019-12-03 12:12:41 +01:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from manage_sql.manage_sql import HandleSql
MYSQL_CONN = HandleSql()
2019-12-03 12:12:41 +01:00
2019-12-03 14:58:19 +01:00
try:
check_return_bdd = MYSQL_CONN.conn()
2019-12-03 14:58:19 +01:00
except OperationalError as error:
print(error)
else:
print(check_return_bdd)