pyaccordsSDK error handling