mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
[log/sentry] avoid KeyError: 'SENTRY_PROJECT'
if compute_scope is not present on transport registry, we can't update options dictionnary with empty dsn_config dictionary fix #43949
This commit is contained in:
parent
ac23b5cfe7
commit
4ce20bb2f7
@ -128,12 +128,12 @@ def setup_handlers():
|
||||
callable(transport_registry.compute_scope)):
|
||||
conf_extras = transport_registry.compute_scope(url, dsn_config)
|
||||
dsn_config.update(conf_extras)
|
||||
options.update({
|
||||
'project': dsn_config['SENTRY_PROJECT'],
|
||||
'servers': dsn_config['SENTRY_SERVERS'],
|
||||
'public_key': dsn_config['SENTRY_PUBLIC_KEY'],
|
||||
'secret_key': dsn_config['SENTRY_SECRET_KEY']
|
||||
})
|
||||
options.update({
|
||||
'project': dsn_config['SENTRY_PROJECT'],
|
||||
'servers': dsn_config['SENTRY_SERVERS'],
|
||||
'public_key': dsn_config['SENTRY_PUBLIC_KEY'],
|
||||
'secret_key': dsn_config['SENTRY_SECRET_KEY']
|
||||
})
|
||||
except ValueError as exc:
|
||||
log.info(
|
||||
'Raven failed to parse the configuration provided '
|
||||
|
Loading…
Reference in New Issue
Block a user