From: cloudaice Date: Thu, 16 May 2013 08:54:37 +0000 (+0200) Subject: fixed bug when raise error in options X-Git-Tag: v3.1.0~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66b5db04fae8828221e866fd35c1f127a65e0bb6;p=thirdparty%2Ftornado.git fixed bug when raise error in options --- 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