CoverageCollection: skip config file if empty

This commit is contained in:
umarcor
2021-12-24 16:34:56 +01:00
parent 9846c9e60c
commit 1fbeef36d6

View File

@@ -99,7 +99,7 @@ jobs:
print(f"File '{pyProjectFile}' not found and no ' .coveragerc' file specified.") print(f"File '{pyProjectFile}' not found and no ' .coveragerc' file specified.")
# Read output paths from '.coveragerc' file # Read output paths from '.coveragerc' file
else: elif len(coverageRC) > 0:
coverageRCFile = Path(coverageRC) coverageRCFile = Path(coverageRC)
if coverageRCFile.exists(): if coverageRCFile.exists():
with coverageRCFile.open("rb") as file: with coverageRCFile.open("rb") as file: