AnswerDotAI / AnswerDotAI/plash_cli

encoding issue when reading from plash.env

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
20
Forks
6
Avg merge
1m
Merged PRs (30d)
1

Description

Plash bug (just windows i imagine), when I'm reading from plash.env. On railway, this would work:

api_key = os.environ.get('api_key')

but receiving various errors:

I've added strip and now works fine:

api_key = os.environ.get('api_key', '').strip()

All working on my setup now, just thought you might want to know for other Windows users. Probably because /r/n are created in windows.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.