diff --git a/utils/businesslogic.py b/utils/businesslogic.py index bf6827a4..032f13f8 100644 --- a/utils/businesslogic.py +++ b/utils/businesslogic.py @@ -394,7 +394,7 @@ def _service_paid_by_transaction(servicesubscription, transaction, add_days): logger.debug( f"{servicesubscription} paid for first time, adding bonus of {bonus_days}" ) - if transaction.comment != "": + if transaction.comment: transaction.comment = transaction.comment + f"\r\nFirst payment of {servicesubscription} - added {bonus_days.days} bonus days." else: transaction.comment = f"First payment of {servicesubscription} - added {bonus_days.days} bonus days."