Resolve unexpected exception caused by sinch error_code being a string (#32929)

This commit is contained in:
Bendik Brenne
2020-03-18 21:43:43 +01:00
committed by GitHub
parent 661570dfad
commit cb450dcebd

View File

@@ -83,7 +83,7 @@ class SinchNotificationService(BaseNotificationService):
) )
except ErrorResponseException as ex: except ErrorResponseException as ex:
_LOGGER.error( _LOGGER.error(
"Caught ErrorResponseException. Response code: %d (%s)", "Caught ErrorResponseException. Response code: %s (%s)",
ex.error_code, ex.error_code,
ex, ex,
) )