Maintenance will be performed on,,, and tomorrow, 2020/08/04, starting at approximately 9am PDT. It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please direct any comments, questions or concerns to

Commit 3edca060 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

api: fix 400 error message for voevent creation

parent e5e627a1
......@@ -1716,7 +1716,7 @@ class VOEventList(InheritPermissionsAPIView):
MassGap ='MassGap', None)
if (skymap_filename and not skymap_type) or (skymap_type and not skymap_filename):
msg = "Both or neither of skymap_time and skymap_filename must be specified."
msg = "Both or neither of skymap_type and skymap_filename must be specified."
return Response({'error': msg}, status = status.HTTP_400_BAD_REQUEST)
# Instantiate the voevent and save in order to get the serial number
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment