Skip to content

Commit

Permalink
fix: regex
Browse files Browse the repository at this point in the history
  • Loading branch information
sireko committed Jun 14, 2024
1 parent 8fdc55b commit e4f65cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def initialize_sentry(config):

if options["environment"] is None:
db_name = config.get("db_name")
regex_match_dev = re.search("^btlnet\-(.*)\-[0-9]+$", db_name)
regex_match_dev = re.search("^btlnet-(.*)-[0-9]+$", db_name)
if regex_match_dev and regex_match_dev.group(1):
options["environment"] = regex_match_dev.group(1)
else:
Expand Down

0 comments on commit e4f65cf

Please sign in to comment.