diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-03 18:23:56 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-03 18:23:56 -0500 |
commit | 1f34d8b095d8e7c9d3276f1fc768a5d83d9e2aff (patch) | |
tree | a02ffffd3fa071da20116422aa63d1613ff321df /coverage/data.py | |
parent | 85170bf147c93f88c9d1580de3eb53da01082f18 (diff) | |
download | python-coveragepy-git-1f34d8b095d8e7c9d3276f1fc768a5d83d9e2aff.tar.gz |
fix: race condition on data file shouldn't break combining. #1522
Diffstat (limited to 'coverage/data.py')
-rw-r--r-- | coverage/data.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/data.py b/coverage/data.py index 16fb9a8a..baddaddd 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -161,6 +161,8 @@ def combine_parallel_data( # The CoverageException has the file name in it, so just # use the message as the warning. data._warn(str(exc)) + if message: + message(f"Couldn't combine data file {rel_file_name}: {exc}") delete_this_one = False else: data.update(new_data, aliases=aliases) |