summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1998-07-29 19:40:03 +0000
committerbwarsaw1998-07-29 19:40:03 +0000
commitbd22788cfca6bfa7d4f931b6ccf02ee192b7ceb6 (patch)
tree8bb0b2d5205809642fc0c92c86bd0b4c64ed628b
parent66aa0a6567c37235e8127a20cb07e202e4b3f342 (diff)
downloadmailman-bd22788cfca6bfa7d4f931b6ccf02ee192b7ceb6.tar.gz
mailman-bd22788cfca6bfa7d4f931b6ccf02ee192b7ceb6.tar.zst
mailman-bd22788cfca6bfa7d4f931b6ccf02ee192b7ceb6.zip
run_main(): initialize logger and multi to sys.stderr. This is in
case anything breaks between the start of this function and the creation of the real objects, otherwise the calls in the except branch will fail, kicking us back to a low-level exception. using sys.stderr isn't great, but it's better than nothing.
-rw-r--r--scripts/driver5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/driver b/scripts/driver
index 8bc207601..c85eb68bc 100644
--- a/scripts/driver
+++ b/scripts/driver
@@ -69,6 +69,11 @@
def run_main():
try:
+ # These will ensure that even if something between now and the
+ # creation of the real logger below fails, we can still get
+ # *something* meaningful
+ logger = sys.stderr
+ multi = sys.stderr
# insert the relative path to the parent of the Mailman package
# directory, so we can pick up the Utils module
import os