We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c94e9ab commit c7ad052Copy full SHA for c7ad052
waf_regex/logic.py
@@ -136,8 +136,9 @@ def remove_match_set(self,match_set_id):
136
match_set_object = self.get_match_set(match_set_id)
137
138
for match_tuple in match_set_object['RegexMatchSet']['RegexMatchTuples']:
139
- self.delete_match_set(match_set_id,match_tuple)
140
- self.remove_pattern_set(match_tuple['RegexPatternSetId'])
+ if bool(match_tuple):
+ self.delete_match_set(match_set_id,match_tuple)
141
+ self.remove_pattern_set(match_tuple['RegexPatternSetId'])
142
143
changeToken = self.client.get_change_token()
144
response = self.client.delete_regex_match_set(
0 commit comments