mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fixes for reports sentry dsn (lint and missing import).
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""Universe configuration builder."""
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
from six.moves import configparser
|
||||
@@ -68,13 +69,13 @@ class Configuration(object):
|
||||
raise ConfigurationError("Directory does not exist: %s" % path)
|
||||
|
||||
@property
|
||||
def sentry_dsn_public( self ):
|
||||
def sentry_dsn_public(self):
|
||||
"""
|
||||
Sentry URL with private key removed for use in client side scripts,
|
||||
sentry server will need to be configured to accept events
|
||||
"""
|
||||
if self.sentry_dsn:
|
||||
return re.sub( r"^([^:/?#]+:)?//(\w+):(\w+)", r"\1//\2", self.sentry_dsn )
|
||||
return re.sub(r"^([^:/?#]+:)?//(\w+):(\w+)", r"\1//\2", self.sentry_dsn)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user