Don't add note suffix for empty note
1 files changed, 1 insertions(+), 1 deletions(-) M buildsrht/blueprints/jobs.py
M buildsrht/blueprints/jobs.py => buildsrht/blueprints/jobs.py +1 -1
@@ 188,7 188,7 @@ def addsuffix(note: str, suffix: str) -> str: """ maxlen = Job.note.prop.columns[0].type.length assert len(suffix) + 1 <= maxlen, f"Suffix was too long ({len(suffix)})" if note.endswith(suffix): if note.endswith(suffix) or not note: return note result = f"{note} {suffix}" if len(result) <= maxlen: