some minor changes to how yaml is parsed and adding some simple checks
Details
Details
Some local testing, not much to do until there are runner changes
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
Looks OK, except for the one inline comment.
libtaskotron/taskyaml.py | ||
---|---|---|
5 | I'm not sure why this line is present. It is either overwritten in the try: block, or it is never used, because an exception occurs and the return statement is never reached. If you really want to return this value, the return statement must be a part of the finally: block. But I think we want to throw an exception rather than return 'not parsed' to the caller, right? |
Comment Actions
I'll update the diff shortly
libtaskotron/taskyaml.py | ||
---|---|---|
5 | yeah, it made sense when I wrote it. I'll remove the line |
I'm not sure why this line is present. It is either overwritten in the try: block, or it is never used, because an exception occurs and the return statement is never reached. If you really want to return this value, the return statement must be a part of the finally: block.
But I think we want to throw an exception rather than return 'not parsed' to the caller, right?