[tor-commits] [chutney/master] TorNet: Fix format() usage in launch error message

teor at torproject.org teor at torproject.org
Fri Jan 24 01:40:37 UTC 2020


commit d66c7540b4245f6de0b5b93229c4dd2a8b56d919
Author: teor <teor at torproject.org>
Date:   Fri Jan 24 11:39:51 2020 +1000

    TorNet: Fix format() usage in launch error message
    
    Fix on 33041.
---
 lib/chutney/TorNet.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index 7c7e8f1..47b8e84 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -212,8 +212,8 @@ def _warnMissingTor(tor_path, cmdline, tor_name="tor"):
        at tor_path while running cmdline. Suggest the appropriate
        environmental variable to set to resolve the issue.
     """
-    help_msg_fmt = ("Set the '{}' environment variable to the path of '{}'. " +
-                    "If using test-network.sh, set the 'TOR_DIR' " +
+    help_msg_fmt = ("Set the '{0}' environment variable to the path of " +
+                    "'{1}'. If using test-network.sh, set the 'TOR_DIR' " +
                     "environment variable to the directory containing '{1}'.")
     help_msg = ""
     if tor_name == "tor":



More information about the tor-commits mailing list