Skip to content

index out of range error

Hello, I tried to use the code and got the following error:

Working on file queue/File.eml
Working on file queue/astro.eml
Working on file queue/example.eml
================================
Reading through file /home/guido/git_folders/automated-arxiv-search/queue/File.eml...
================================
================================
  Creating basic dataframe...   
================================
Traceback (most recent call last):
  File "/home/guido/git_folders/automated-arxiv-search/arxivsearch.py", line 375, in <module>
    all_preprints_filename = create_basic_dataframe(preprints=preprints, verbose=False)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/guido/git_folders/automated-arxiv-search/arxivsearch.py", line 242, in create_basic_dataframe
    filename = "all_preprints_" + str(date_list[0])[:16].replace(" ", "_") + ".csv"


                                     ~~~~~~~~~^^^
IndexError: list index out of range
Edited by guido granda