The part 'is not None' is not necessary. Just 'if self.timeout_download' is enough.