https://github.com/SupervisionT/Shortest_Path_Graph_Dijkstra/blob/f9160071c318449b2b8be01d2d95df1d6a5c31a9/main.py#L20-L26 This will catch *any* error, not just FileNotFoundErrors, so you should catch that error specifically. You could also get away with not catching this error, as if an error is thrown it will stop executing the code.
Activity