Improve error checking
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start by locating the data() and download() entry points and reading how their returnType and fileFormat parameters are currently compared. Check the linked pull request for work already underway; done means unsupported values produce errors that identify the valid options.
Written by the indexing model from the issue text.
Description
Think about the ways users could misuse our code and add some error checking to guard against it.
Some examples to start:
- In
def data(), thereturnTypeparam could be an invalid string. Ways to guard against that include:- do a
.lower()or.upper()onreturnTypebefore the comparison - before the comparison, check if the value of
returnTypeis one of the supported values, and if it isn't, throw an error that tells the user what the valid options are
- do a
- In
def download(), thefileFormatparam could be an invalid string.- Maybe check if
fileFormatis one of the supported formats, and if it isn't, throw an error that tells the user what the valid formats are
- Maybe check if
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lasp/latis-python-client
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lasp/latis-python-client#27 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
lasp/latis-python-client#24 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
lasp/latis-python-client#23 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
lasp/latis-python-client#19 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
lasp/latis-python-client#18 ·
All issues in lasp/latis-python-client
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AiursoftWeb/AnduinOS-2#19 ·