Skip to content

Commit

Permalink
fix error output
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliorighi committed Oct 15, 2024
1 parent e0338e0 commit 4f0912c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rest/annotation/annotations_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def delete_annotation(name):
def check_required_fields(fields, data):
missing_fields = [field for field in fields if field not in data]
if missing_fields:
raise BadRequest(descriptioncheck_required_fields=f"Missing required files: {', '.join(missing_fields)}")
raise BadRequest(description=f"Missing required files: {', '.join(missing_fields)}")

def check_annotation_exists(annotation_name):
if GenomeAnnotation.objects(name=annotation_name).first():
Expand Down

0 comments on commit 4f0912c

Please sign in to comment.