Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

UnicodeEncodeError on print >> sys.stderr when redirecting to file #71

@gdehaan

Description

@gdehaan

Hi,

I am getting UnicodeEncodeError's in raven.handlers.logging.py (lines 54, 61-63) on print to stderr, but only when redirecting stdout and stderr. It seems to work when printing to a macosx terminal, but not to a linux file.
It happens only in exception fallback cases, but I've had a fair few of those because issue #68 (md5.checksum with unicode).
Fixed by print >> sys.stderr, to_string(stuff).

Cheers,
Gijsbert

PS Many many thanks for sentry/raven, it's awesome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions