From d62b34125c466d22cb6f8ecad03fb43d1d020fd9 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 2 Apr 2013 05:07:21 +0000 Subject: [PATCH] send a CLI error string to stderr svn: r21848 --- gramps/gen/plug/_options.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/gen/plug/_options.py b/gramps/gen/plug/_options.py index c04810698..2051715fd 100644 --- a/gramps/gen/plug/_options.py +++ b/gramps/gen/plug/_options.py @@ -379,10 +379,11 @@ class OptionHandler(object): if not ( isinstance(option_data, list) and option_data and option_data[0] in docgen_names ): - print( _("Option '%(opt_name)s' is present in %(file)s\n" - " but is not known to the module. Ignoring...") % \ + print(_("Option '%(opt_name)s' is present in %(file)s\n" + " but is not known to the module. Ignoring...") % { 'opt_name' : option_name, - 'file' : self.option_list_collection.filename } ) + 'file' : self.option_list_collection.filename }, + file=sys.stderr ) options.pop(option_name) # Then we set common options from whatever was found