Skip to content

Commit

Permalink
make comment more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Paurikova2 committed Nov 13, 2024
1 parent 3795cbc commit 41d09fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pump/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ def _get_key_v2(self, val):

def filter_res_d(self, res_d, ignored_mtd_fields):
"""
Filter the resulting res_d dictionary based on custom conditions.
Filter the resulting res_d dictionary based on custom ignored metadata fields.
"""
return {key: val for key, val in res_d.items() if key not in ignored_mtd_fields}
return {key: val for key, val in res_d.items() if res_d is not None and key not in ignored_mtd_fields}

def value(self, res_type_id: int, res_id: int, text_for_field_id: int = None, log_missing: bool = True):
"""
Expand Down

0 comments on commit 41d09fa

Please sign in to comment.