remove unused exception variable (PEP8)