Skip to content

Commit 4541ce6

Browse files
committed
expose exception types through builtins
1 parent 3c7ab8b commit 4541ce6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎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)