def _before_valid_time_range(self):
        """
        In case of uncertainty (times not specified), we assume that we are in a valid range.
        """
        if self.start_time is not None:
            try:
                if self.time < self.start_time:
                    return True
            except TypeError:
                return False
        return False
def _before_valid_time_range ( self ) : if self . start_time is not None : try : if self . time < self . start_time : return True except TypeError : return False return False
In case of uncertainty (times not specified), we assume that we are in a valid range.