Skip to content

Commit

Permalink
fix get returns none type
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao authored Dec 8, 2023
1 parent e624421 commit 5225cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_signed_url_for_file(


def _log_signed_url_data_info(indexed_file, user_sub, requested_protocol):
size_in_kibibytes = indexed_file.index_document.get("size", 0) / 1024
size_in_kibibytes = (indexed_file.index_document.get("size") or 0) / 1024
acl = indexed_file.index_document.get("acl")
authz = indexed_file.index_document.get("authz")

Expand Down

0 comments on commit 5225cce

Please sign in to comment.