def get_graph(): try: g = RoadGraph.load_graph("graph.pickle") return g except: DEFAULT_LOGGER.error("Could not load graph")