Skip to content

Conversation

@TheLunarLogic
Copy link
Contributor

…nctionality

raise LabellerrError("report_ids must be a non-empty list")

# Construct URL
url = f"https://api.labellerr.com/exports/status?project_id={project_id}&uuid={request_uuid}&client_id={client_id}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use constant here like in other functions above

raise LabellerrError({'error': response.json(), 'code': response.status_code})
elif response.status_code >= 500:
raise LabellerrError({
'status': 'internal server error',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capital I

}

response = requests.get(
url="https://api.labellerr.com/exports/download",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use constant for api.labellerr.com as used in above functions

@ximihoque ximihoque merged commit 328d2b5 into main Jul 9, 2025
3 checks passed
@ximihoque ximihoque deleted the feature/labimp-6908 branch July 9, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants