diff options
| author | David Cramer <dcramer@gmail.com> | 2015-03-29 11:34:31 -0700 |
|---|---|---|
| committer | David Cramer <dcramer@gmail.com> | 2015-05-21 17:25:24 -0700 |
| commit | 12bb73770747ae8a6cc688bff32279257362e76b (patch) | |
| tree | 079c4982783e0389539491d0c7fb8d6667e3e17a /raven/scripts/runner.py | |
| parent | 23bd04541dfa81b888bbe39043bc9a7f20e26abe (diff) | |
| download | raven-12bb73770747ae8a6cc688bff32279257362e76b.tar.gz | |
Refactor DSN and transport configurationdsn-refactor
Passing a transport via a scheme prefix is now deprecated in favor of explicit class loading:
>>> Client(dsn, transport=HttpTransport)
Additionally DSN-related configuration is now held in the RemoteConfig helper, which is bound on Client.remote.
Fixes GH-587
Diffstat (limited to 'raven/scripts/runner.py')
| -rw-r--r-- | raven/scripts/runner.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/raven/scripts/runner.py b/raven/scripts/runner.py index 8110813..b58077e 100644 --- a/raven/scripts/runner.py +++ b/raven/scripts/runner.py @@ -49,8 +49,9 @@ def send_test_message(client, options): sys.stdout.write(' %-15s: %s\n' % (k, getattr(client, k))) sys.stdout.write('\n') - if not all([client.servers, client.project, client.public_key, client.secret_key]): - sys.stdout.write("Error: All values must be set!\n") + remote_config = client.remote + if not remote_config.is_active(): + sys.stdout.write("Error: DSN configuration is not valid!\n") sys.exit(1) if not client.is_enabled(): |
