python-sparkpost icon indicating copy to clipboard operation
python-sparkpost copied to clipboard

TooManyRedirects for non-existent template fetching

Open ChillarAnand opened this issue 5 years ago • 0 comments

I accidentally send html instead of html and noticed that it is redirecting instead of throwing 404.

# fails with 404
In [30]: spark_post.templates.get('404')

# recursion
In [29]: spark_post.templates.get('h?https://avilpage.com')

ChillarAnand avatar Sep 28 '18 13:09 ChillarAnand