From 4d84b47127d44e40297cfce48aa00628f9a98760 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 24 Jan 2013 17:25:47 -0500 Subject: [PATCH] mutt_ldap.py: Use LOG.error() instead of sys.stderr.write() --- mutt_ldap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mutt_ldap.py b/mutt_ldap.py index 64e4da4..cab0222 100755 --- a/mutt_ldap.py +++ b/mutt_ldap.py @@ -287,8 +287,7 @@ if __name__ == '__main__': LOG.info(u'loaded configuration from {0}'.format(read_configfiles)) if len(_sys.argv) < 2: - _sys.stderr.write( - u'{0}: no search string given\n'.format(_sys.argv[0])) + LOG.error(u'{0}: no search string given'.format(_sys.argv[0])) _sys.exit(1) query = u' '.join(_sys.argv[1:]) -- 2.26.2