Skip to content

Work around missing search field for MBTA events

MBTA events leave the search field blank. See, for example, gracedb-playground/G4205.

This caused the following error:

Traceback (most recent call last):
  File "/home/emfollow/.local/lib/python3.6/site-packages/celery/app/trace.py", line 382, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/emfollow/.local/lib/python3.6/site-packages/celery/app/trace.py", line 641, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/emfollow/.local/lib/python3.6/site-packages/gwcelery/tasks/detchar.py", line 156, in check_vectors
    if event['search'] == 'MDC':
KeyError: 'search'

Merge request reports

Loading