Skip to content

Raise if hostname_extraction_regex doesn't capture hostname#544

Merged
albertvaka merged 1 commit intomasterfrom
albertvaka/check-match-group-exists-1
Jul 10, 2019
Merged

Raise if hostname_extraction_regex doesn't capture hostname#544
albertvaka merged 1 commit intomasterfrom
albertvaka/check-match-group-exists-1

Conversation

@albertvaka
Copy link
Copy Markdown
Contributor

@albertvaka albertvaka commented Jul 3, 2019

Accessing m[:hostname] later in the code would raise a less clear IndexError exception if the match group doesn't exist.

Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Good fix 🙇

@albertvaka albertvaka merged commit 20a2741 into master Jul 10, 2019
@albertvaka albertvaka deleted the albertvaka/check-match-group-exists-1 branch July 10, 2019 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants