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

Commit 3f9f931

Browse files
committed
fix: Always consider remote configs enabled even without secret key. Fixes #1235
1 parent 6dbfe10 commit 3f9f931

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

raven/conf/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __str__(self):
6161
return text_type(self.base_url)
6262

6363
def is_active(self):
64-
return all([self.base_url, self.project, self.public_key, self.secret_key])
64+
return all([self.base_url, self.project, self.public_key])
6565

6666
def get_transport(self):
6767
if not self.store_endpoint:

tests/conf/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def test_no_secret_key(self):
9090
assert res.public_key == 'foo'
9191
assert res.secret_key is None
9292
assert res.options == {}
93+
assert res.is_active()
9394

9495
assert get_auth_header(protocol=7, timestamp=42,
9596
client='raven-python/1.0',

0 commit comments

Comments
 (0)