This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Use consistent return types/exceptions in method "get_files()" #53
Labels
priority: high
High priority
type: style
Related to code style
workload: hours
Likely takes hours to resolve
Currently,
get_files()
returns way too many possible response types and raising of exceptions is inconsistent when setting or not settingformat=zip
. Moreover, the current behavior is not documented correctly.Unmarshalled responses should only be returned if
TRSClient
is configured to run indebug
mode (as documented). Otherwise, either an object of typetrs_cli.models.error
(if there's a non-200
response from the TRS), of typePath
(ifformat=zip
and all went well) or of typeList[ToolFile]
(ifformat=None
and all went well) is to be returned. Exceptions (as currently documented) should also be returned consistently, regardless of whatformat
is specified.The text was updated successfully, but these errors were encountered: