Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e608279

Browse files
committed
Added DatabaseError for MySQL
1 parent df087a8 commit e608279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sql/magic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
)
1212
from IPython.core.magic_arguments import argument, magic_arguments, parse_argstring
1313
from IPython.display import display_javascript
14-
# JA: added DatabaseError
14+
# JA: added DatabaseError for MySQL
1515
from sqlalchemy.exc import OperationalError, ProgrammingError, DatabaseError
1616

1717
import sql.connection
@@ -258,7 +258,7 @@ def execute(self, line="", cell="", local_ns={}):
258258
# Return results into the default ipython _ variable
259259
return result
260260

261-
# JA: added DatabaseError
261+
# JA: added DatabaseError for MySQL
262262
except (ProgrammingError, OperationalError, DatabaseError) as e:
263263
# Sqlite apparently return all errors as OperationalError :/
264264
if self.short_errors:

0 commit comments

Comments
 (0)