Skip to content

Commit

Permalink
fix: remove unwrap in entry_points code (prefix-dev#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Jan 15, 2024
1 parent 278dfba commit 995de2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/packaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,12 @@ fn create_entry_points(
.to_string_lossy(),
ep,
&PythonInfo::from_version(&python_version, output.build_configuration.target_platform)
.unwrap(),
.map_err(|e| {
PackagingError::CannotCreateEntryPoint(format!(
"Could not create python info: {}",
e
))
})?,
);

if target_platform.is_windows() {
Expand Down

0 comments on commit 995de2b

Please sign in to comment.