Skip to content

Commit

Permalink
Replace wrong 'json' argument by 'post_data' when calling _post (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tducret committed Aug 21, 2019
1 parent e332107 commit f896b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion revolut/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def get_token_step1(device_id, phone, password, simulate=False):
c = Client(device_id=device_id, token=_DEFAULT_TOKEN_FOR_SIGNIN)
data = {"phone": phone, "password": password}
return c._post(url=_URL_GET_TOKEN_STEP1,
json=data,
post_data=data,
expected_status_code=204)
return ""

Expand Down

0 comments on commit f896b03

Please sign in to comment.