(self)
Get a timestamp from self.timeplist, create if doesn't exist.

    Returns:
      datetime.datetime object
    Raises:
      ErrorWritingPlist: SetPlistKey fails
      OSError: if more >1 parent directory is missing from self.timeplist path
Get a timestamp from self.timeplist, create if doesn't exist.
Get a timestamp from self . timeplist create if doesn t exist .
def GetOrCreateTimestamp(self):
    """Get a timestamp from self.timeplist, create if doesn't exist.

    Returns:
      datetime.datetime object
    Raises:
      ErrorWritingPlist: SetPlistKey fails
      OSError: if more >1 parent directory is missing from self.timeplist path
    """
    try:
      return self.ReadTimeFile()
    except (ErrorReadingPlist, ValueError):
      # Got a bad file, try writing a new one
      return self.WriteTimeFile()
def GetOrCreateTimestamp ( self ) : try : return self . ReadTimeFile ( ) except ( ErrorReadingPlist , ValueError ) : # Got a bad file, try writing a new one return self . WriteTimeFile ( )