1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-09-22 04:25:55 -04:00

Fix problem with string formatting

%d would fail if given a string
This commit is contained in:
Ivan Habunek 2017-11-14 08:23:10 +01:00
parent 209b3f5403
commit 729498559d
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -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()