Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Do not raise an exception when attempting to delete non-existing files.
  • Loading branch information
robomics committed Oct 9, 2023
1 parent ab62e38 commit d4fe7ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hictk/convert/cool_to_hic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ void cool_to_hic(const ConvertConfig& c) {
const auto weights = tmpdir() / "weights.txt";

if (c.force && std::filesystem::exists(c.path_to_output)) {
std::filesystem::remove(c.path_to_output);
[[maybe_unused]] std::error_code ec{};
std::filesystem::remove(c.path_to_output, ec);
}

std::unique_ptr<boost::process::child> process{};
Expand Down

0 comments on commit d4fe7ad

Please sign in to comment.