summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-01-06 19:08:30 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-01-06 19:08:30 -0500
commit5b2f3b8e6e96e2899ba8edf4a44a07b9533fa33a (patch)
tree7e710a3bfbceed6a69da5fdaf1bab20013af8538
parentf28be718d6214b18df559e39ef223418782436d7 (diff)
downloadpython-coveragepy-git-nedbat/debug-1298.tar.gz
debug: see if we can find out why #1298 is happeningnedbat/debug-1298
-rw-r--r--coverage/html.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py
index ae1d041f..ede34a96 100644
--- a/coverage/html.py
+++ b/coverage/html.py
@@ -441,7 +441,11 @@ class IncrementalChecker:
"""Check the global data that can affect incremental reporting."""
m = Hasher()
for d in data:
- m.update(d)
+ try:
+ m.update(d)
+ except:
+ print("Couldn't hash this: {d!r}".format(d=d))
+ raise
these_globals = m.hexdigest()
if self.globals != these_globals:
self.reset()