From 8938d65327611dded72c7876ffe52e4d4d12ce76 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 10 Dec 2009 22:32:25 -0500 Subject: * Refactor the language manager off of the config object and into a utility. * Fix a few small typos in exception handlers. * Move the initialization of the Zope Component Architecture into the first initialization step. The only reason we couldn't do that previously was because the domain object referenced the config, causing a circularity problem. Refactor the Domain implementation to avoid that. --- src/mailman/commands/cli_control.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mailman/commands/cli_control.py') diff --git a/src/mailman/commands/cli_control.py b/src/mailman/commands/cli_control.py index e2c450b71..f484b196c 100644 --- a/src/mailman/commands/cli_control.py +++ b/src/mailman/commands/cli_control.py @@ -30,6 +30,7 @@ __all__ = [ import os import sys +import errno import signal import logging @@ -137,10 +138,10 @@ def kill_watcher(sig): try: os.kill(pid, sig) except OSError as error: - if e.errno != errno.ESRCH: + if error.errno != errno.ESRCH: raise print >> sys.stderr, _('No child with pid: $pid') - print >> sys.stderr, e + print >> sys.stderr, error print >> sys.stderr, _('Stale pid file removed.') os.unlink(config.PIDFILE) -- cgit v1.2.3-70-g09d2