"except Exception as e". Old syntax is obsolete.