Fixed invalid syntax (mising except)