Skip to content

Commit

Permalink
Bug 1179963: Use new Raygun API
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed May 5, 2016
1 parent a702746 commit b6415bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pontoon/base/errors.py
Expand Up @@ -12,8 +12,9 @@ def send_exception(exception, exc_info=None):
"""
Function sends exception to selected provider.
"""
if settings.RAYGUN4PY_API_KEY:
provider = raygunprovider.RaygunSender(settings.RAYGUN4PY_API_KEY)
api_key = settings.RAYGUN4PY_CONFIG['api_key']
if api_key:
provider = raygunprovider.RaygunSender(api_key)
provider.send_exception(exception, exc_info=exc_info)
else:
log.error(exception, exc_info=exc_info)

0 comments on commit b6415bf

Please sign in to comment.