Skip to content

Conversation

@Lestropie
Copy link
Member

Use of broad Except clause resulted in obscuring AttributeError when testing for regex matches. This meant that input strings that should ideally have been omitted due to an exclusion regex would nevertheless be included in the process list.

Current master code will generate a warning indicating that the exclude string did not match any input, even if when properly interpreted as a regex it should have. Test added here fails on master but succeeds here. Also added some debug messages so that if the exclusion is not behaving as intended, it's possible to discriminate between a regex failing to compile vs. compiling but nevertheless not matching.

@Lestropie Lestropie requested a review from a team February 7, 2021 02:26
@Lestropie Lestropie self-assigned this Feb 7, 2021
Use of broad Except clause resulted in obscuring AttributeError when testing for regeex matches. This meant that input strings that should ideally have been omitted due to an exclusion regex would nevertheless be included in the process list.
@Lestropie Lestropie added this to the 3.0.3 hotfix milestone Jun 30, 2021
@jdtournier jdtournier enabled auto-merge June 30, 2021 10:49
@jdtournier jdtournier merged commit a0b9e78 into master Jun 30, 2021
@jdtournier jdtournier deleted the for_each_regex_fix branch June 30, 2021 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants