Skip to content

Commit ce519aa

Browse files
committed
Only suppress deprecation warning at MySQL connection
1 parent d138e3b commit ce519aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def connect(self):
9090
Connects to the database server.
9191
"""
9292
with warnings.catch_warnings():
93-
warnings.simplefilter("ignore")
93+
warnings.filterwarnings('ignore', '.*deprecated.*')
9494
self._conn = client.connect(init_command=self.init_fun,
9595
sql_mode="NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,"
9696
"STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION",

0 commit comments

Comments
 (0)