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

Minor improvements regarding exception handling and naming #11

Merged
merged 7 commits into from Sep 3, 2021
Merged

Minor improvements regarding exception handling and naming #11

merged 7 commits into from Sep 3, 2021

Conversation

ryanamay
Copy link
Contributor

@ryanamay ryanamay commented Sep 3, 2021

Changes;

  • Line 37: Using a catch-all exception defeats the purpose of using except, it's important to know the error to pinpoint what when wrong, hence replaced with Exception as e to pinpoint the error and TypeError for type-related issues.
  • Line 35, 38: I think it's important to let people know that they have entered 0 as a value so I put it there.
  • Rename function TimeInput to time_input: PEP 8 - Function names should be lowercase, with words separated by underscores as necessary to improve readability.

@angelofallars
Copy link
Collaborator

LGTM (Looks Good To Me).

@angelofallars angelofallars merged commit a07122b into algodrip:main Sep 3, 2021
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.

None yet

2 participants