Add missing self argument and add default action for InvalidActionError