Skip to content

Commit 957849f

Browse files
committed
Improve MySQL error messages
1 parent b6f64f3 commit 957849f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

seleniumbase/core/mysql.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ def __init__(self, database_env="test", conf_creds=None):
6262
except Exception:
6363
time.sleep(backoff)
6464
count = count + 1
65-
if retry_count == 3:
66-
raise Exception("Unable to connect to Database after 3 retries.")
65+
if retry_count == 3:
66+
print("Unable to connect to Database after 3 retries.")
67+
raise
6768

6869
def query_fetch_all(self, query, values):
6970
"""Execute db query, get all the values, and close the connection."""

0 commit comments

Comments
 (0)