e7a8300 Replace StandardError with Exception (#1014220)

Authored and Committed by m4rtink 9 years ago
    Replace StandardError with Exception (#1014220)
    
    StandardError has been deprecated in Python 3 and using
    Exception in its place should do the same thing.