Hacker News new | ask | show | jobs
Show HN: Cheap Flights finder bot with Python (replit.com)
7 points by aizaddx 970 days ago
Cheap flights finder
3 comments

  Traceback (most recent call last):
  File "/home/runner/2320236597/main.py", line 3, in <module>
    from email_sender import SendEmail
  File "/home/runner/2320236597/email_sender.py", line 7, in <module>
    my_secret = os.environ['gmail_pass']
  File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/os.py", line 680, in __getitem__
    raise KeyError(key) from None
    
    KeyError: 'gmail_pass'
See, this is what happens when you don't commit secrets to your repo.
Or test before you share with the world.
Better than hardcoding it
Fixed it now, thank you.
Thank you so much for having a look at my code. I was trying it with replit and it was working fine at my PC and I never got to know about this issue maybe I was logged into my replit. I have fixed it now. Do you mind giving it another shot? I am sorry I am pretty new to coding and learning things by trial and errors.
Nice! Is the kiwi API documented somewhere or did you just reverse-engineer it from the mobile app?
They have a B2B product called Tequila: https://tequila.kiwi.com/portal/login