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

lab from go to py #2

Open
wants to merge 7 commits into
base: Korotkov_Mihail_Aleksandrovich
Choose a base branch
from

Conversation

holenyt
Copy link

@holenyt holenyt commented Feb 16, 2024

No description provided.

try:
if (salary>=15000):
return salary
raise ValueError("Ошибка: Минимальная зарплата 15000");
Copy link
Contributor

Choose a reason for hiding this comment

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

если вы тут делаете raise, то ловить его тут же не надо - ловить его надо в другом месте программы - где эта функция вызывается - тут корневое отличие от ошибок в go

@jskonst
Copy link
Contributor

jskonst commented Feb 17, 2024

Упал линтер - надо поправить

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.

2 participants