Paraphrasing icon indicating copy to clipboard operation
Paraphrasing copied to clipboard

Index Error

Open Pranavk02 opened this issue 2 years ago • 2 comments

After adding the directory path I am facing this issue can you guide me on this.

IndexError Traceback (most recent call last) C:\Users\USE~1\AppData\Local\Temp/ipykernel_12012/1020083594.py in 149 150 if name == "main": --> 151 main()

C:\Users\USE~1\AppData\Local\Temp/ipykernel_12012/1020083594.py in main() 145 print("Quillbot Paraphrasing Tool") 146 filepath = input("Enter the path of the formatted text file: ") --> 147 openfile(filepath) 148 149

C:\Users\USE~1\AppData\Local\Temp/ipykernel_12012/1020083594.py in openfile(filepath) 64 filepath = filepath.rstrip() 65 filesave = os.path.split(filepath)[-1] ---> 66 filesave = "Drafts/" + ([filename.strip() for filename in filesave.split('.')][-2] + " - draft") 67 68 cur_path = os.path.dirname(file)

IndexError: list index out of range

Pranavk02 avatar Jun 02 '22 06:06 Pranavk02