fixing typo. Python expects the class as argument for try/except.