python-sparkpost
python-sparkpost copied to clipboard
TooManyRedirects for non-existent template fetching
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')