From 9de53664d324576619f40c4b12736fa8d010e536 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Thu, 19 Oct 2017 14:14:55 +0200 Subject: [PATCH] agoraplus: fix argument list for error formatting (#19559) --- passerelle/contrib/agoraplus/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passerelle/contrib/agoraplus/models.py b/passerelle/contrib/agoraplus/models.py index 2c5b548..9d66a44 100644 --- a/passerelle/contrib/agoraplus/models.py +++ b/passerelle/contrib/agoraplus/models.py @@ -72,7 +72,7 @@ def wrap_agora(response, msg, expected_type=None): try: if expected_type is not None and not isinstance(response, expected_type): raise AgoraAPIError( - 'failure %s: we expected %s and got: %r' % (expected_type.__name__, response)) + 'failure %s: we expected %s and got: %r' % (msg, expected_type.__name__, response)) yield response except AgoraAPIError: -- 2.15.0.rc1