Skip to content

Commit bcb4050

Browse files
vdusekclaude
andauthored
fix: Fix f-string bugs in charging log message (#817)
## Summary - Fixed `${subject}` → `{subject}` in the charging log message — the `$` prefix caused the variable to be printed literally instead of interpolated. - Added missing `f` prefix to the continuation string so `{charged_count}` gets properly interpolated. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 13b1fea commit bcb4050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apify/_charging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ def calculate_chargeable() -> dict[str, int | None]:
279279
if charged_count < count:
280280
subject = 'instance' if count == 1 else 'instances'
281281
logger.info(
282-
f"Charging {count} ${subject} of '{event_name}' event would exceed max_total_charge_usd "
283-
'- only {charged_count} events were charged'
282+
f"Charging {count} {subject} of '{event_name}' event would exceed max_total_charge_usd "
283+
f'- only {charged_count} events were charged'
284284
)
285285

286286
max_charge_count = self.calculate_max_event_charge_count_within_limit(event_name)

0 commit comments

Comments
 (0)