From 66b5db04fae8828221e866fd35c1f127a65e0bb6 Mon Sep 17 00:00:00 2001 From: cloudaice Date: Thu, 16 May 2013 10:54:37 +0200 Subject: [PATCH] fixed bug when raise error in options --- tornado/options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado/options.py b/tornado/options.py index faf0e164c..8191946df 100644 --- a/tornado/options.py +++ b/tornado/options.py @@ -139,8 +139,8 @@ class OptionParser(object): by later flags. """ if name in self._options: - raise Error("Option %r already defined in %s", name, - self._options[name].file_name) + raise Error("Option %r already defined in %s" % + (name, self._options[name].file_name)) frame = sys._getframe(0) options_file = frame.f_code.co_filename file_name = frame.f_back.f_code.co_filename -- 2.47.2