Fix syntax error in exception catching

During testing I discovered that I had called the error notification
method incorrectly. Should be fixed now.