Skip to content

Commit 0a484a8

Browse files
committed
Added DBAPI exceptions and connect method to single connection creation
1 parent e51b58b commit 0a484a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exceptions/python_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ create_exception!(psqlpy.exceptions, SSLError, DatabaseError);
147147
#[allow(clippy::missing_errors_doc)]
148148
#[allow(clippy::too_many_lines)]
149149
pub fn python_exceptions_module(py: Python<'_>, pymod: &Bound<'_, PyModule>) -> PyResult<()> {
150-
pymod.add("Warning", py.get_type::<WarningError>())?;
150+
pymod.add("WarningError", py.get_type::<WarningError>())?;
151151
pymod.add("Error", py.get_type::<Error>())?;
152152
pymod.add("InterfaceError", py.get_type::<InterfaceError>())?;
153153
pymod.add("DatabaseError", py.get_type::<DatabaseError>())?;

0 commit comments

Comments
 (0)