diff options
| author | bwarsaw | 2007-01-02 02:42:34 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-01-02 02:42:34 +0000 |
| commit | d7da90ebc8aeee180ba470c002f7e37ef7df1089 (patch) | |
| tree | 8e5cb355d59b880a171078d9425ebf4c6cd325d5 /Mailman/Queue | |
| parent | 7971cdb1d36862db483547c974f1e2e40980f3d3 (diff) | |
| download | mailman-d7da90ebc8aeee180ba470c002f7e37ef7df1089.tar.gz mailman-d7da90ebc8aeee180ba470c002f7e37ef7df1089.tar.zst mailman-d7da90ebc8aeee180ba470c002f7e37ef7df1089.zip | |
Ported from 2.1 branch:
Ensure that exported XML is written in utf-8, at least if we're writing to
a file other than stdout. Fix a typo in getting the digest style. Update
copyright years.
In HTTPRunner.py, catch KeyboardInterrupt. In Python 2.5 this has been moved
in the exception hierarchy so that it's no longer caught by "except
Exception".
import.py: Import user topic selections. Fix a typo in an error message.
Catch BadDomainSpecificationErrors that can be raised in MailList.Create().
Diffstat (limited to 'Mailman/Queue')
| -rw-r--r-- | Mailman/Queue/HTTPRunner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/Queue/HTTPRunner.py b/Mailman/Queue/HTTPRunner.py index e2c053629..32620f458 100644 --- a/Mailman/Queue/HTTPRunner.py +++ b/Mailman/Queue/HTTPRunner.py @@ -1,4 +1,4 @@ -# Copyright (C) 2006 by the Free Software Foundation, Inc. +# Copyright (C) 2006-2007 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -63,6 +63,8 @@ server = make_server(config.HTTP_HOST, config.HTTP_PORT, qlog.info('HTTPRunner qrunner started.') try: server.serve_forever() -except: +# Do it this way because of exception hierarchy changes in Python 2.5. XXX +# Change this to BaseException for Python 2.5. +except (Exception, KeyboardInterrupt): qlog.exception('HTTPRunner qrunner exiting.') raise |
