Skip to content

Commit

Permalink
add slot name to deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wochinge committed Sep 30, 2020
1 parent 59302b1 commit 4782953
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rasa/shared/core/slots.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,15 @@ def __init__(
if influence_conversation:
raise ValueError(
f"An {UnfeaturizedSlot.__name__} cannot be featurized. "
f"Please use a different slot type instead. See the "
f"Please use a different slot type for slot '{name}' instead. See the "
f"documentation for more information: {DOCS_URL_SLOTS}"
)

rasa.shared.utils.io.raise_warning(
f"{UnfeaturizedSlot.__name__} is deprecated "
f"and will be removed in Rasa Open Source "
f"3.0. Please configure the 'influence_conversation' "
f"flag instead.",
f"3.0. Please change the type and configure the 'influence_conversation' "
f"flag for slot '{name}' instead.",
docs=DOCS_URL_SLOTS,
category=FutureWarning,
)
Expand Down Expand Up @@ -356,9 +356,9 @@ def __init__(
if influence_conversation:
raise ValueError(
f"An {AnySlot.__name__} cannot be featurized. "
f"Please use a different slot type instead. If you need to featurize a "
f"data type which is not supported out of the box, implement "
f"a custom slot type by subclassing '{Slot.__name__}'. "
f"Please use a different slot type for slot '{name}' instead. If you "
f"need to featurize a data type which is not supported out of the box, "
f"implement a custom slot type by subclassing '{Slot.__name__}'. "
f"See the documentation for more information: {DOCS_URL_SLOTS}"
)

Expand Down

0 comments on commit 4782953

Please sign in to comment.