Skip to content

Commit 6f01e1c

Browse files
Kyle Delaneyaxelsrz
authored andcommitted
Fix empty name error message typo in bot_state.py (#345)
* Fix empty name error message typo in bot_state.py * Update bot_state.py
1 parent eb6212b commit 6f01e1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libraries/botbuilder-core/botbuilder/core/bot_state.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ def create_property(self, name: str) -> StatePropertyAccessor:
4242
:return: If successful, the state property accessor created.
4343
"""
4444
if not name:
45-
raise TypeError(
46-
"BotState.create_property(): BotState cannot be None or empty."
47-
)
45+
raise TypeError("BotState.create_property(): name cannot be None or empty.")
4846
return BotStatePropertyAccessor(self, name)
4947

5048
def get(self, turn_context: TurnContext) -> Dict[str, object]:

0 commit comments

Comments
 (0)