API Error Handling Fix

Forgot to make the new second argument optional, fixed.