Hacker News new | ask | show | jobs
by archiewood 970 days 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'
2 comments

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.