From d3d4b2e25ec43c2a248c9cc5ea0046fa7dc15987 Mon Sep 17 00:00:00 2001 From: ajreckof Date: Fri, 12 Apr 2024 19:38:37 +0200 Subject: [PATCH] Fix infinite while loop on empty added file. --- misc/scripts/copyright_headers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/scripts/copyright_headers.py b/misc/scripts/copyright_headers.py index 169795921fd9..2b1201b3c09a 100755 --- a/misc/scripts/copyright_headers.py +++ b/misc/scripts/copyright_headers.py @@ -73,7 +73,7 @@ line = fileread.readline() header_done = False - while line.strip() == "": # Skip empty lines at the top + while line.strip() == "" and line != "": # Skip empty lines at the top line = fileread.readline() if line.find("/**********") == -1: # Godot header starts this way