Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location code error #41

Closed
rushabhsooni opened this issue Apr 23, 2021 · 1 comment
Closed

Location code error #41

rushabhsooni opened this issue Apr 23, 2021 · 1 comment

Comments

@rushabhsooni
Copy link

this is the error on quickstart code it always occurs , please also provide option for tinder passport as it comes in premium as also running tinder in two devices location might not change.

Traceback (most recent call last):
File "quickstart.py", line 13, in
session.set_custom_location("Leuven, Belgium")
File "/home/rushabh/Desktop/test-2/TinderBotz/tinderbotz/session.py", line 102, in set_custom_location
"latitude": float(data.get('latt')),
TypeError: float() argument must be a string or a number, not 'NoneType'

@frederikme
Copy link
Owner

Hi @rushabhsooni ,

I'll break the answer down in 3 parts:

solution
First things first, the issue you mentioned is now fixed, but you'll now have to use latitude and longitude values to set a custom location. For example: session.set_custom_location(latitude=50.879829, longitude=4.700540)

problem
In the previous versions it used to make an api call to convert the location (string) into coordinates (lat and long) but their api seems to be down every now and then. Thus that's where the error messages came from.

feature request
On the premium passport aspect; I had thought of working on that, but my tinder+ subscription ended last week, and haven't planned on renewing it yet. So for now, this feature unfortunately won't be worked on.

Greetings,

Fred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants