Added missing exception variable

Added missing exception variable