Skip to content

Commit c1ee523

Browse files
committed
expose exception types through builtins
1 parent 5b3139d commit c1ee523

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vm/src/builtins/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,8 @@ pub use zip::PyZip;
8484
pub use float::try_to_bigint as try_f64_to_bigint;
8585
pub use int::try_to_float as try_bigint_to_f64;
8686

87+
// For public API users, exception types are not distinguishable from other types
88+
pub use super::exceptions::{PyBaseException, PyBaseExceptionRef};
89+
8790
mod make_module;
8891
pub use make_module::{ascii, make_module, print};

0 commit comments

Comments
 (0)