code: def main():
      
      logging.basicConfig(format='%(asctime)s %(levelname)s:%(message)s')
  
      try:
          cli()
          return 0
      except LocationsError as error:
          print(error)
          return 2
      except RuntimeError as error:
          print(error)
          return 255
      except OSError as error:
          return error.errno
docs: Main script handler.
  
      Returns:
          int: 0 for success, >1 error code