diff options
author | Maximillian Dornseif <m.dornseif@hudora.de> | 2018-02-01 14:15:15 +0100 |
---|---|---|
committer | Ashley Camba <ashwoods@gmail.com> | 2018-02-03 05:00:22 +0100 |
commit | 3b1cb303c84363a40a420e9350edcc635ee65835 (patch) | |
tree | 5d6b6243eb18872a7779c9b9055def8d7eb3f787 | |
parent | 91fc04639fe4b4b892cb6e8703491e4daa031ce8 (diff) | |
download | raven-3b1cb303c84363a40a420e9350edcc635ee65835.tar.gz |
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.
-rw-r--r-- | raven/conf/remote.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/raven/conf/remote.py b/raven/conf/remote.py index 4afe587..8dd54bf 100644 --- a/raven/conf/remote.py +++ b/raven/conf/remote.py @@ -57,6 +57,9 @@ class RemoteConfig(object): def __unicode__(self): return text_type(self.base_url) + def __str__(self): + return text_type(self.base_url) + def is_active(self): return all([self.base_url, self.project, self.public_key, self.secret_key]) |