Skip to content

Commit b3bae7d

Browse files
authored
Merge pull request #3085 from locustio/dont-crash-if-parameters-are-passed-to-failure-when-someone-forgot-catch_response-True
FastHttpUser: Dont crash if parameters are passed to failure() when someone forgot catch_response=True
2 parents c74f780 + 539a34e commit b3bae7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: locust/contrib/fasthttp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def success(self):
568568
"If you want to change the state of the request, you must pass catch_response=True. See http://docs.locust.io/en/stable/writing-a-locustfile.html#validating-responses"
569569
)
570570

571-
def failure(self):
571+
def failure(self, *_args, **_kwargs):
572572
raise LocustError(
573573
"If you want to change the state of the request, you must pass catch_response=True. See http://docs.locust.io/en/stable/writing-a-locustfile.html#validating-responses"
574574
)

0 commit comments

Comments
 (0)