Readit News logoReadit News
archiewood · 2 years ago

  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'

robertlagrant · 2 years ago
See, this is what happens when you don't commit secrets to your repo.
evulhotdog · 2 years ago
Or test before you share with the world.
syntaxing · 2 years ago
Better than hardcoding it
aizaddx · 2 years ago
Fixed it now, thank you.
aizaddx · 2 years ago
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.
scumola · 2 years ago
Nice! Is the kiwi API documented somewhere or did you just reverse-engineer it from the mobile app?
stevedomin · 2 years ago
They have a B2B product called Tequila: https://tequila.kiwi.com/portal/login