Catch error when no DATA sequences can be build
I would like to catch this error when the sequence DRS4->PEDCAL->DATA is not complete
============================== Starting sequencer.py at 2021-04-16 07:10:03 UTC for LST, Telescope: LST1, Night: 2021_04_15 ==============================
Traceback (most recent call last):
File "/fefs/aswg/software/virtual_env/anaconda3/envs/osa/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3080, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 4554, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 4562, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'jobname'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/fefs/aswg/software/virtual_env/anaconda3/envs/osa/bin/sequencer", line 33, in <module>
sys.exit(load_entry_point('lstosa', 'console_scripts', 'sequencer')())
File "/fefs/aswg/lstosa/osa/scripts/sequencer.py", line 69, in main
single_process(options.tel_id, process_mode)
File "/fefs/aswg/lstosa/osa/scripts/sequencer.py", line 136, in single_process
queue_list = getqueuejoblist(sequence_list)
File "/fefs/aswg/lstosa/osa/jobs/job.py", line 513, in getqueuejoblist
setqueuevalues(queue_list, sequence_list)
File "/fefs/aswg/lstosa/osa/jobs/job.py", line 532, in setqueuevalues
df_queue_filtered = df_queue[df_queue["JobName"].isin(sequences_df["jobname"])].copy()
File "/fefs/aswg/software/virtual_env/anaconda3/envs/osa/lib/python3.7/site-packages/pandas/core/frame.py", line 3024, in __getitem__
indexer = self.columns.get_loc(key)
File "/fefs/aswg/software/virtual_env/anaconda3/envs/osa/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3082, in get_loc
raise KeyError(key) from err
KeyError: 'jobname'