Skip to content

Commit 070f1b0

Browse files
committed
moved i to the top of the func
1 parent 23eb46b commit 070f1b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ def main():
214214
isFullDiscovery = True
215215
i = 0
216216

217+
i += 1
218+
217219
if not isFullDiscovery:
218220
logger.info(f"Starting Discover in {DISCOVERY_INTERVAL}...")
219221
else:
@@ -242,8 +244,6 @@ def main():
242244

243245
logger.debug(f"Endpoint responded with {response.text} {response.status_code} {"OK" if response.ok else "NOT OK"}")
244246

245-
i += 1
246-
247247
if __name__ == '__main__':
248248
logger.setLevel(level=LOG_LEVEL)
249249

0 commit comments

Comments
 (0)