Skip to content

Commit 71101f6

Browse files
committed
expose exception types through builtins
1 parent e35e3b3 commit 71101f6

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
@@ -83,5 +83,8 @@ pub(crate) mod genericalias;
8383
pub use float::try_to_bigint as try_f64_to_bigint;
8484
pub use int::try_to_float as try_bigint_to_f64;
8585

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

0 commit comments

Comments
 (0)