Skip to content

Hnadle error without error message #102

@stucka

Description

@stucka

Looks like maybe no data was returned, which would need to be tested for separately. Possibly set data to None before the call just to be certain.

if not data or if data['err']:

File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/bln/client.py", line 483, in _upload_file
uri, err = _get_upload_uri(endpoint, token, projectId, path)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/bln/client.py", line 509, in _get_upload_uri
if data["err"]:
TypeError: 'NoneType' object is not subscriptable
"""

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions