Add missing exception name

Hitting this exception handler currently returns:

    UnboundLocalError: local variable 'e' referenced before assignment