Skip to content

Commit 20140e1

Browse files
authored
Update python/packages/autogen-core/src/autogen_core/base/_topic.py
1 parent 8145320 commit 20140e1

File tree

1 file changed

+1
-1
lines changed
  • python/packages/autogen-core/src/autogen_core/base

1 file changed

+1
-1
lines changed

python/packages/autogen-core/src/autogen_core/base/_topic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TopicId:
2626

2727
def __post_init__(self) -> None:
2828
if is_valid_topic_type(self.type) is False:
29-
raise ValueError(f"Invalid topic type: {self.type}")
29+
raise ValueError(f"Invalid topic type: {self.type}. Must match the pattern: ^[\\w\\-\\.\\:\\=]+\\Z")
3030

3131
def __str__(self) -> str:
3232
return f"{self.type}/{self.source}"

0 commit comments

Comments
 (0)