Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution #602

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Solution #602

wants to merge 3 commits into from

Conversation

SerhiyDema
Copy link

attempt 01

app/main.py Outdated Show resolved Hide resolved
app/main.py Outdated
Comment on lines 58 to 68
if not issubclass(self.limitation_class, SlideLimitationValidator):
return False
validate_instance = self.limitation_class()

validate_instance.age = visitor.age
validate_instance.height = visitor.height
validate_instance.weight = visitor.weight

return bool(validate_instance.age
and validate_instance.height
and validate_instance.weight)
Copy link

Choose a reason for hiding this comment

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

use try ... except here

SerhiyDema and others added 2 commits October 7, 2024 13:22
thanks, undesrtand

Co-authored-by: Vasyl Smutok <vasyl.smutok@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants