From d500dc2fb87bcbb1909d515a6d0c46ffb487ee4f Mon Sep 17 00:00:00 2001 From: Steffen Brinckmann Date: Tue, 31 Oct 2023 15:22:39 +0100 Subject: [PATCH] improve output --- .github/workflows/validator_pypi_rocrate.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validator_pypi_rocrate.yml b/.github/workflows/validator_pypi_rocrate.yml index 4bc2005..b1665f5 100644 --- a/.github/workflows/validator_pypi_rocrate.yml +++ b/.github/workflows/validator_pypi_rocrate.yml @@ -34,7 +34,7 @@ jobs: if not name.endswith('.eln'): continue fileName = os.path.join(root, name) - print(f'Try to parse: {fileName}') + print(f'\n\nTry to parse: {fileName}') with ZipFile(fileName, 'r', compression=ZIP_DEFLATED) as elnFile: p = ZPath(elnFile) dirName = sorted(p.iterdir())[0] @@ -43,9 +43,8 @@ jobs: elnFile.extractall(dirpath) temppath= dirpath.joinpath(dirName.name) crate = ROCrate(temppath) - print('\nList content') for e in crate.get_entities(): - print(e.id, e.type) + print(f' {e.id}: {e.type}') except ValueError: print("**ERROR: Could not parse content\n"+traceback.format_exc()+'\n\n') shell: python