summaryrefslogtreecommitdiff
path: root/Mailman/Crypt.py
diff options
context:
space:
mode:
authorviega1998-06-14 00:58:33 +0000
committerviega1998-06-14 00:58:33 +0000
commit8dfd4643c7d8216cfbf6e180ed7b868715b9e775 (patch)
tree9b4856eea1d6dfc3afb2a055fe71c61328197e72 /Mailman/Crypt.py
parentc29ba417e715cce7f70c195bf437755639a85ed6 (diff)
downloadmailman-8dfd4643c7d8216cfbf6e180ed7b868715b9e775.tar.gz
mailman-8dfd4643c7d8216cfbf6e180ed7b868715b9e775.tar.zst
mailman-8dfd4643c7d8216cfbf6e180ed7b868715b9e775.zip
Provides a method wrap_func(func, debug, print_env). If debug is off,
the StampedLogger is initialized. If debug is on, or the StampedLogger errors, func is run in a try-except block. If there's an error, it's printed to the web page, along with the environment if print_env is on. Based off Michael McLay's subscribe script, but I wanted to avoid as much code duplication as possible, which led to this strategy.
Diffstat (limited to 'Mailman/Crypt.py')
0 files changed, 0 insertions, 0 deletions