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

Commit 3b1cb30

Browse files
Maximillian Dornseifashwoods
authored andcommitted
Update remote.py
On Python 2.7 (App Engine) the current codes results in a rather unhelpful `Configuring Raven for host: <raven.conf.remote.RemoteConfig object at 0xfa682430>` at startup. It might be better to force Python 2 on base.py at `self.logger.debug("Configuring Raven for host: {0}".format(self.remote))` to evaluate Unicode, but I think at this place it is much more obvious that the code is for Python 2.x sake.
1 parent 91fc046 commit 3b1cb30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

raven/conf/remote.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def __init__(self, base_url=None, project=None, public_key=None,
5757
def __unicode__(self):
5858
return text_type(self.base_url)
5959

60+
def __str__(self):
61+
return text_type(self.base_url)
62+
6063
def is_active(self):
6164
return all([self.base_url, self.project, self.public_key, self.secret_key])
6265

0 commit comments

Comments
 (0)