File "/Users/username/Library/Caches/pypoetry/virtualenvs/turbotscli-9vOn4szK-py3.11/lib/python3.11/site-packages/thoughtspot_rest_api_v1/tsrestapiv2.py", line 465, in metadata_tml_export
if edoc_format.upper() == 'YAML':
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'upper'
This is caused by the method not checking edoc_format if it is not part of the request. And since it is set to optional, and defaulted to none, it should first check if edoc_format is not none first to avoid this error.
Encountering an error when calling metadata_tml_export() with the following request:
File "/Users/username/Library/Caches/pypoetry/virtualenvs/turbotscli-9vOn4szK-py3.11/lib/python3.11/site-packages/thoughtspot_rest_api_v1/tsrestapiv2.py", line 465, in metadata_tml_export if edoc_format.upper() == 'YAML': ^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'upper'
This is caused by the method not checking edoc_format if it is not part of the request. And since it is set to optional, and defaulted to none, it should first check if edoc_format is not none first to avoid this error.