Skip to content

Commit b1201e1

Browse files
committed
update for bad code
1 parent 8245e6e commit b1201e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/resources/scripts/getjobs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ def printEnvInfoNoDataAPI(ManageProjectName, printData = True, printEnvType = Fa
162162

163163
max_indent = 0
164164
veryMax = 8
165-
165+
last_index_max_line = 0
166+
166167
for line in enabledList:
167168
indent = len(line) - len(line.lstrip())
168169

@@ -192,7 +193,7 @@ def printEnvInfoNoDataAPI(ManageProjectName, printData = True, printEnvType = Fa
192193
env_match_string = "^ [^\s]"
193194
else:
194195
print("Error with full-status report")
195-
print("Highest indent is with this line\n" + last_index_max_line)
196+
print("Highest indent is with this line\n" + str(last_index_max_line))
196197
print("\n".join(enabledList))
197198
raise ValueError("Error deciphering max_index: " + str(max_indent))
198199

0 commit comments

Comments
 (0)