Skip to content

Commit

Permalink
improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenBrinckmann committed Oct 31, 2023
1 parent 207a9fe commit d500dc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/validator_pypi_rocrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit d500dc2

Please sign in to comment.