Skip to content

Commit

Permalink
Make result renderer tollerate None as a uid from a zipfile
Browse files Browse the repository at this point in the history
It renderes an empty string for others, in this case. The changeset
aligned that.
  • Loading branch information
mih committed Dec 7, 2023
1 parent e6456f6 commit e8c9f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalad_next/commands/ls_file_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def custom_result_renderer(res, **kwargs):
# stick with numerical IDs (although less accessible), we cannot
# know in general whether this particular system can map numerical
# IDs to valid target names (think stored name in tarballs)
owner_info = f'{res["uid"]}:{res["gid"]}' if 'uid' in res else ''
owner_info = f'{res["uid"]}:{res["gid"]}' if res.get('uid') else ''

ui.message('{mode} {size: >6} {owner: >9} {hts: >11} {item} ({type})'.format(
mode=mode,
Expand Down

0 comments on commit e8c9f0e

Please sign in to comment.