File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -597,8 +597,6 @@ async def add_match(self):
597
597
"""Add a match for a place, making fuzzy matching available to the
598
598
client"""
599
599
place = self .get_idle_place ()
600
- if place .acquired :
601
- raise UserError (f"can not change acquired place { place .name } " )
602
600
for pattern in self .args .patterns :
603
601
if not 2 <= pattern .count ("/" ) <= 3 :
604
602
raise UserError (f"invalid pattern format '{ pattern } ' (use 'exporter/group/cls/name')" )
@@ -617,8 +615,6 @@ async def add_match(self):
617
615
async def del_match (self ):
618
616
"""Delete a match for a place"""
619
617
place = self .get_idle_place ()
620
- if place .acquired :
621
- raise UserError (f"can not change acquired place { place .name } " )
622
618
for pattern in self .args .patterns :
623
619
if not 2 <= pattern .count ("/" ) <= 3 :
624
620
raise UserError (f"invalid pattern format '{ pattern } ' (use 'exporter/group/cls/name')" )
@@ -638,8 +634,6 @@ async def add_named_match(self):
638
634
639
635
Fuzzy matching is not allowed to avoid accidental names conflicts."""
640
636
place = self .get_idle_place ()
641
- if place .acquired :
642
- raise UserError (f"can not change acquired place { place .name } " )
643
637
pattern = self .args .pattern
644
638
name = self .args .name
645
639
if not 2 <= pattern .count ("/" ) <= 3 :
You can’t perform that action at this time.
0 commit comments