IndexError:无法从空序列中选择

I am trying to run this command python run.py --mode MLE and got this error. I am not able to find the correct solution for it .

Traceback (most recent call last):
  File "run.py", line 208, in <module>
    train_MLE()
  File "run.py", line 94, in train_MLE
    encoder_input, decoder_input, weight = model.get_batch(d_valid, i)
  File "C:\Users\Kriti Gupta\Desktop\GitHub_repo\Seq2seq-Chatbot-With-Deep-Reinforcement-Learning\seq2seq_model.py", line 342, in get_batch
    encoder_input, decoder_input = random.choice(data[bucket_id])
  File "C:\Users\Kriti Gupta\AppData\Local\Programs\Python\Python37\lib\random.py", line 261, in choice
    raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence

请帮忙!!