Fix NameError in error handling branch