Skip to content

Commit

Permalink
added null safe check
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinSMueller committed May 4, 2023
1 parent 06cfea4 commit fe06050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file_copier.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _clean_up_record(record):
:param record:
:return:
"""
return {key.strip(): value.strip() for key, value in record.items()}
return {key if not key else key.strip(): value if not value else value.strip() for key, value in record.items()}

def _read_pre_manifest(self):
files = []
Expand Down

0 comments on commit fe06050

Please sign in to comment.