diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 3205eca..234e5ee 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1125,7 +1125,9 @@ class SlackRequest(object): makes a SHA of the requst url and current time so we can re-tag this on the way back through. """ - def __init__(self, token, request, post_data={}, **kwargs): + def __init__(self, token, request, post_data=None, **kwargs): + if post_data is None: + post_data = {} for key, value in kwargs.items(): setattr(self, key, value) self.tries = 0 |