import sys
file_path = "/home/fc-abhay/PF/project-management-app/project-management-app-backend/backgroundtask/report_generate.py"
with open(file_path, "r") as f:
    lines = f.readlines()

for i in range(101, len(lines)):
    # The except block is at the bottom. We indent everything until the except block.
    if lines[i].startswith("    except Exception as e:"):
        break
    if lines[i].strip() == "":
        continue
    # Add 4 spaces of indentation
    lines[i] = "    " + lines[i]

with open(file_path, "w") as f:
    f.writelines(lines)
