automated change using python-modernize: use 'as' in except