[Context]
There was a reference before assignment error, where if a paper had an author that only had a last name and didn't fit into the {last name}, {first name} pattern, the code will go into the alternative else statement where it references variables that weren't defined.
e.g. "author": ['Parekh', 'V', 'Saravanan, M.']
[Solution]
Just added another else statement that handles it gracefully.
[Context] There was a
reference before assignment
error, where if a paper had an author that only had a last name and didn't fit into the{last name}, {first name}
pattern, the code will go into the alternative else statement where it references variables that weren't defined.e.g. "author": ['Parekh', 'V', 'Saravanan, M.']
[Solution] Just added another else statement that handles it gracefully.