use the old "except ..., ex" syntax to not lose compatibility with Python 2.5