Port to latest MysqlDB module.

This commit is contained in:
Achim D. Brucker 2020-03-02 09:17:04 +00:00
parent 68496ecaa6
commit 77895218e4
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import sys
import configparser
import MySQLdb
import _mysql_exceptions
import MySQLdb._exceptions
import ExtensionCrawler.config as config
from ExtensionCrawler.util import log_info, log_error, log_warning
@ -131,7 +131,7 @@ class MysqlBackend:
try:
self._create_conn()
return f()
except _mysql_exceptions.OperationalError as e:
except MySQLdb._exceptions.OperationalError as e:
last_exception = e
try: