From fac823dd7329a3618b40c045b22cd2fcd94116b2 Mon Sep 17 00:00:00 2001 From: Mark Walle Date: Mon, 25 Mar 2019 19:06:15 -0700 Subject: [PATCH] correct on_failure param docstring description --- snowplow_tracker/emitters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snowplow_tracker/emitters.py b/snowplow_tracker/emitters.py index ff2380cc..1608d330 100644 --- a/snowplow_tracker/emitters.py +++ b/snowplow_tracker/emitters.py @@ -84,7 +84,7 @@ def __init__(self, endpoint, protocol="http", port=None, method="get", buffer_si :param on_success: Callback executed after every HTTP request in a flush has status code 200 Gets passed the number of events flushed. :type on_success: function | None - :param on_failure: Callback executed if at least one HTTP request in a flush has status code 200 + :param on_failure: Callback executed if at least one HTTP request in a flush has status code other than 200 Gets passed two arguments: 1) The number of events which were successfully sent 2) If method is "post": The unsent data in string form; @@ -342,7 +342,7 @@ def __init__( :param on_success: Callback executed after every HTTP request in a flush has status code 200 Gets passed the number of events flushed. :type on_success: function | None - :param on_failure: Callback executed if at least one HTTP request in a flush has status code 200 + :param on_failure: Callback executed if at least one HTTP request in a flush has status code other than 200 Gets passed two arguments: 1) The number of events which were successfully sent 2) If method is "post": The unsent data in string form;