I have to run codes irrespective whether it fails or not. I'm using ExplicitException. Following is my code:
try:
    G.add_edge(data1[0][0],data1[1][0],weight=data1[2+i][0])
except ExplicitException:
    pass
try:
    G.add_edge(data1[0][0],data1[5][0],weight=data1[6+i][0])
except ExplicitException:
    pass
try:
    G.add_edge(data1[0][0],data1[9][0],weight=data1[10+i][0])
except ExplicitException:
    pass   
try:
    G.add_edge(data1[0][0],data1[13][0],weight=data1[14+i][0])
except ExplicitException:
    pass   
I'm getting the following error:
NameError: name 'ExplicitException' is not defined
would appreciate some help
 
     
     
    