danparshall / namegraph

Other
1 stars 0 forks source link

Exception handling in "parse_fullrow" #21

Closed danparshall closed 2 years ago

danparshall commented 2 years ago

Currently these are bare try/except blocks. Should figure out what exceptions are actually being thrown, and handle them inside the respective 'parse_padre' and 'parse_madre' functions (and then pass out None if an error is raised).

juan-andres-russy commented 2 years ago

Solved on commit '_Exception handling in "parsefullrow"' on test_cases branch. I make the prove with 100k cases and only exception that occurs was <_UnboundLocalError_> on parse_padre() which occurs by returning a variable that has not been designated. I designated the padre variable at the beginning of the function as it is done in parse_madre()