Closed jakebeal closed 3 years ago
This looks like a misinterpretation of the results of running the online validator, which takes care of format translation. The documentation isn't great about possible return values, however I think the valid
field is the key. If valid
is True, then we should assume that the translation was successful, regardless of the content of result
. In the case of an empty document the translation to "GenBank" format results in an empty file.
@jakebeal Will it be confusing if the format translation to GenBank results in an empty file? Or do you expect some sort of an indication that the translation resulted in no content?
In this case, I am indeed expecting an empty file: this case comes up in an automated build toolchain if nothing has been designated for build yet.
Currently, my workaround is a special case where check if I'd get this error and manually write an empty file.
When a document has no content, the validator errors; and empty document should be valid