From f3c1411036d9837db2c46e6ecdd501fbb31289ed Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Wed, 29 May 2024 11:24:16 +1200 Subject: [PATCH] Remove f-string in logging call. --- ops/framework.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/framework.py b/ops/framework.py index 1b71d68f5..661c6959d 100644 --- a/ops/framework.py +++ b/ops/framework.py @@ -951,9 +951,9 @@ def _reemit(self, single_event_path: Optional[str] = None): else: logger.warning( - f'Reference to ops.Object at path {observer_path} has been garbage collected ' + 'Reference to ops.Object at path %s has been garbage collected ' 'between when the charm was initialised and when the event was emitted. ' - 'Make sure sure you store a reference to the observer.' + 'Make sure sure you store a reference to the observer.', observer_path ) if event.deferred: