Even simpler:

    if not line:
        continue