summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-24 11:02:01 +0100
committeremkael <emkael@tlen.pl>2018-02-24 11:02:01 +0100
commitf22476a36f2096628dc336f9adf0caa9a827dc11 (patch)
treefd60406e59d92c2f48739207ffd5df6f948f4413
parent9febaf58536bb32a361d6126b8f1327f6a7dcde2 (diff)
Fix for rethrowing mysql.connector.Error as IOError
-rw-r--r--jfr_playoff/db.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py
index b7c3726..71f3dcb 100644
--- a/jfr_playoff/db.py
+++ b/jfr_playoff/db.py
@@ -29,9 +29,7 @@ class PlayoffDB(object):
row = self.db_cursor.fetchone()
return row
except mysql.connector.Error as e:
- raise IOError(
- message=str(e), filename=db_name,
- errno=e.errno, strerror=str(e))
+ raise IOError(e.errno, str(e), db_name)
def fetch_all(self, db_name, sql, params):
import mysql.connector