view setup.cfg @ 5901:b9450db6c129

Attachment handler: catch all Zip-related errors I had faced the problem with attached .ppt file: MoinMoin tried to check if the file is a Zip file, but zipfile module throwed BadZipfile("Bad magic number for central directory"). Since, according to http://docs.python.org/dev/library/zipfile.html zipfile doesn't have a common base exception we can try to handle, we can only enumerate all possible exceptions. Currently, they are zipfile.BadZipfile, zipfile.LargeZipFile and RuntimeError. With Python 3.2 there will be zipfile.BadZipFile. Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 08 Dec 2012 22:54:04 +0100
parents c0f6dd7ad078
children
line wrap: on
line source
# MoinMoin - Distutils config
#
# Copyright (c) 2001 by Jürgen Hermann <jh@web.de>
# All rights reserved, see COPYING for details.

[bdist_rpm]
release=1
doc_files=
    README
    PKG-INFO
    docs/
requires=python
build_requires=python