Skip to content

Commit abab6ed

Browse files
[LABIMP - 6908 ] fix the check_export_status function (#5)
* [LABIMP-6908] Add export status checking and download URL fetching functionality * [LABIMP-6908] Refactor error messages for consistency and update API URLs to use BASE_URL constant . * [LABIMP-6908] resolve issues of check_export_status
1 parent f06b00b commit abab6ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

labellerr/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def get_direct_upload_url(self, file_name, client_id, purpose='pre-annotations')
7777
tracking_id = str(uuid.uuid4())
7878
logging.exception(f"Error getting direct upload url: {response.text}")
7979
raise LabellerrError({
80+
'status': 'Internal server error',
8081
'status': 'Internal server error',
8182
'message': 'Please contact support with the request tracking id',
8283
'request_id': tracking_id
@@ -975,9 +976,6 @@ def check_export_status(self, api_key, api_secret, project_id, report_ids, clien
975976
export_id=status_item["report_id"],
976977
client_id=client_id
977978
)
978-
979-
# Add download URL to response
980-
status_item["url"] = download_url
981979

982980
return json.dumps(result, indent=2)
983981

0 commit comments

Comments
 (0)