Skip to content

Commit

Permalink
catch solv writing exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jun 6, 2024
1 parent 4f26925 commit 0d204f5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libmamba/src/core/repo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <algorithm>
#include <array>
#include <exception>
#include <tuple>

#include <nlohmann/json.hpp>
Expand Down Expand Up @@ -329,7 +330,14 @@ namespace mamba

if (name() != "installed")
{
write_solv(solv_file);
try
{
write_solv(solv_file);
}
catch (const std::exception& e)
{
LOG_INFO << "Could not write libsolv solv file for " << json_file << ": " << e.what();
}
}
}

Expand Down

0 comments on commit 0d204f5

Please sign in to comment.