Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Laboratory work #4, Ulyana Nagornaya - 22FPL2 #204

Closed
wants to merge 81 commits into from

Conversation

Ulyana-Nagornaya
Copy link

No description provided.

@artyomtugaryov artyomtugaryov self-requested a review December 14, 2023 07:25
Copy link
Contributor

@artyomtugaryov artyomtugaryov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add messages to each error

@@ -28,6 +32,20 @@ def _tokenize(self, text: str) -> tuple[str, ...]: # type: ignore
Raises:
ValueError: In case of inappropriate type input argument or if input argument is empty.
"""
if not (isinstance(text, str) and text):
raise ValueError ("WordProcessor._tokenize: inappropriate input")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the prefix in the message. This information should be in traceback

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OkAlrightThenGIF

@vitazaytseva
Copy link

Well done! Good job!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants