if line_to_insert is None:
                                self.warn("Empty insertion '" + hook_name + "'")
                                continue