Skip to content

encoding issue when reading from plash.env #58

Description

@resolver101757

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions