Skip to content

Commit aa83d7d

Browse files
authored
fix: do not panic on alphas (openai#8406)
alphas are used sometimes as stable release
1 parent d281bcf commit aa83d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codex-rs/core/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub(crate) fn backoff(attempt: u64) -> Duration {
1717
}
1818

1919
pub(crate) fn error_or_panic(message: impl std::string::ToString) {
20-
if cfg!(debug_assertions) || env!("CARGO_PKG_VERSION").contains("alpha") {
20+
if cfg!(debug_assertions) {
2121
panic!("{}", message.to_string());
2222
} else {
2323
error!("{}", message.to_string());

0 commit comments

Comments
 (0)