Skip to content

Commit

Permalink
use correct error message when out of range (#37)
Browse files Browse the repository at this point in the history
* use correct error message when out of range

* update links to CONTRIBUTING.md
  • Loading branch information
Greg Stoll authored Aug 13, 2021
1 parent b9dfda5 commit 381b007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- [ ] This contribution adheres to [CONTRIBUTING.md](https://github.com/ni/<reponame>/blob/master/CONTRIBUTING.md).
- [ ] This contribution adheres to [CONTRIBUTING.md](https://github.com/ni/hightime/blob/master/CONTRIBUTING.md).

TODO: Check the above box with an 'x' indicating you've read and followed [CONTRIBUTING.md](https://github.com/ni/<reponame>/blob/master/CONTRIBUTING.md).
TODO: Check the above box with an 'x' indicating you've read and followed [CONTRIBUTING.md](https://github.com/ni/hightime/blob/master/CONTRIBUTING.md).

### What does this Pull Request accomplish?

Expand Down
2 changes: 1 addition & 1 deletion hightime/_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _checkArg(name, value):
)

if not 0 <= value <= 999999999:
raise ValueError("{} must be in 0..999".format(name), value)
raise ValueError("{} must be in 0..999999999".format(name), value)

return value

Expand Down

0 comments on commit 381b007

Please sign in to comment.