From: W. Trevor King Date: Thu, 24 Jan 2013 22:25:47 +0000 (-0500) Subject: mutt_ldap.py: Use LOG.error() instead of sys.stderr.write() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4d84b47127d44e40297cfce48aa00628f9a98760;p=mutt-ldap.git mutt_ldap.py: Use LOG.error() instead of sys.stderr.write() --- 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:])