1. if Data.closed == True:
  2. Data = open("Data.txt", "r")
  3. #
  4.  
  5. with Data as fin:
  6. last = deque(fin, 1)
  7. try:
  8. lat, lon = last[0].split("|")
  9. except (IndexError, ValueError):
  10. fatalError("ERROR:Map file has no data!", True)