From 8e96a4b9bc2e8a3902d12363f6b8186cd4a3518d Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Wed, 25 Oct 2023 12:52:32 -0400 Subject: [PATCH] Be precise and direct about what we mean by "that usage is deprecated." --- api/src/opentrons/execute.py | 2 +- api/src/opentrons/simulate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/opentrons/execute.py b/api/src/opentrons/execute.py index 605b0caedcd..21242be00c4 100644 --- a/api/src/opentrons/execute.py +++ b/api/src/opentrons/execute.py @@ -338,7 +338,7 @@ def execute( # noqa: C901 In older software versions, ``payload["text"]`` was a `format string `_. To get human-readable text, you had to do ``payload["text"].format(**payload)``. - That usage is deprecated now. If ``payload["text"]`` happens to contain any + Don't do that anymore. If ``payload["text"]`` happens to contain any ``{`` or ``}`` characters, it can confuse ``.format()`` and cause it to raise a ``KeyError``. diff --git a/api/src/opentrons/simulate.py b/api/src/opentrons/simulate.py index 9560eee2bcb..3c74d088994 100644 --- a/api/src/opentrons/simulate.py +++ b/api/src/opentrons/simulate.py @@ -450,7 +450,7 @@ def simulate( In older software versions, ``payload["text"]`` was a `format string `_. To get human-readable text, you had to do ``payload["text"].format(**payload)``. - That usage is deprecated now. If ``payload["text"]`` happens to contain any + Don't do that anymore. If ``payload["text"]`` happens to contain any ``{`` or ``}`` characters, it can confuse ``.format()`` and cause it to raise a ``KeyError``.