From c74aabed82ed591c47c91e4e3b8912ac50c2adad Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Jul 06 2017 06:18:14 +0000 Subject: Fix string format Signed-off-by: Chenxiong Qi --- diff --git a/pyrpkg/cli.py b/pyrpkg/cli.py index 22fd77f..cf2811c 100644 --- a/pyrpkg/cli.py +++ b/pyrpkg/cli.py @@ -1159,8 +1159,8 @@ see API KEY section of copr-cli(1) man page. "git_branch": self.cmd.branch_merge} section_name = "%s.container-build" % self.name - err_msg = "Missing {option} option in [{plugin.section}] section. "\ - "Using {option} from [{root.section}]" + err_msg = "Missing %(option)s option in [%(plugin.section)s] section. " \ + "Using %(option)s from [%(root.section)s]" err_args = {"plugin.section": section_name, "root.section": self.name} if self.config.has_option(section_name, "kojiconfig"):