From 83e5ff9a10b8f2e44bfc0d25d3f55eb06f3af518 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Nov 2021 22:21:49 +0100 Subject: [PATCH] Don't fail to send a problem report if there's no ffprobe.log --- src/lib/send_problem_report_job.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/send_problem_report_job.cc b/src/lib/send_problem_report_job.cc index 6ab83ee62..6fbb73430 100644 --- a/src/lib/send_problem_report_job.cc +++ b/src/lib/send_problem_report_job.cc @@ -121,6 +121,10 @@ SendProblemReportJob::add_file (string& body, boost::filesystem::path file) cons { body += file.string() + ":\n"; body += "---<8----\n"; - body += dcp::file_to_string (_film->file(file)); + try { + body += dcp::file_to_string (_film->file(file)); + } catch (...) { + body += "[could not be read]\n"; + } body += "---<8----\n\n"; } -- 2.30.2