From 729498559d6b986793aefdbe499424762645cf1b Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Tue, 14 Nov 2017 08:23:10 +0100 Subject: [PATCH] Fix problem with string formatting %d would fail if given a string --- toot/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/api.py b/toot/api.py index 2dff648..b1dfc42 100644 --- a/toot/api.py +++ b/toot/api.py @@ -99,7 +99,7 @@ def _post(app, user, url, data=None, files=None): def _account_action(app, user, account, action): - url = '/api/v1/accounts/%d/%s' % (account, action) + url = '/api/v1/accounts/{}/{}'.format(account, action) return _post(app, user, url).json()