Skip to content

Commit

Permalink
debug: get more information about #1522
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jan 3, 2023
1 parent 9d2e1b0 commit bc5bd7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions coverage/data.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion coverage/sqldata.py
Expand Up @@ -289,6 +289,7 @@ def _read_db(self) -> None:
with self._dbs[threading.get_ident()] as db:
try:
row = db.execute_one("select version from coverage_schema")
assert row is not None
except Exception as exc:
if "no such table: coverage_schema" in str(exc):
self._init_db(db)
Expand All @@ -299,7 +300,6 @@ def _read_db(self) -> None:
)
) from exc
else:
assert row is not None
schema_version = row[0]
if schema_version != SCHEMA_VERSION:
raise DataError(
Expand Down

0 comments on commit bc5bd7c

Please sign in to comment.