Skip to content

Commit

Permalink
add check for empty notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jenjou committed Jun 7, 2024
1 parent c87ed8d commit 47e5cf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/igvfd/upgrade/software_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ def software_version_5_6(value, system):
merged_note = ' '.join([x for x in [software_note, version_note, lab_note, award_note] if x != ''])
notes = value.get('notes', '')
notes += merged_note
value['notes'] = notes.strip()
if notes:
value['notes'] = notes.strip()

0 comments on commit 47e5cf3

Please sign in to comment.