Skip to content

Commit

Permalink
fix(monitor): fix using variable 'now' before assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
hokus15 committed Mar 24, 2024
1 parent 0f28a9e commit 4737829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iotconnect/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def monitor(self):

def run(self):
while self._running:
now = time.time()
try:
now = time.time()
monitor_result = self.monitor()
for publisher in self._publishers:
if not publisher.is_initialized():
Expand Down

0 comments on commit 4737829

Please sign in to comment.