From 2ab3ad703a4fd18e50ed6742d10e55132ee65226 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Sun, 26 Oct 2014 22:25:06 +0200 Subject: [PATCH] Make .format() work with older Python versions --- twilio/rest/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio/rest/exceptions.py b/twilio/rest/exceptions.py index dd5df2bbb4..9ace2bf265 100644 --- a/twilio/rest/exceptions.py +++ b/twilio/rest/exceptions.py @@ -43,7 +43,7 @@ def teal(words): return u("\033[36m\033[49m%s\033[0m") % words def get_uri(code): - return "https://www.twilio.com/docs/errors/{}".format(code) + return "https://www.twilio.com/docs/errors/{0}".format(code) # If it makes sense to print a human readable error message, try to # do it. The one problem is that someone might catch this error and