mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
unnecessary commas
This commit is contained in:
+3
-3
@@ -246,7 +246,7 @@ def poll_worker(thread_id):
|
||||
device_id, status, next_poll, next_discovery = dev_row[0]
|
||||
|
||||
if not getLock('queue.{0}'.format(device_id), db):
|
||||
releaseLock('queue.{0}'.format(device_id), db):
|
||||
releaseLock('queue.{0}'.format(device_id), db)
|
||||
continue
|
||||
|
||||
if next_poll and next_poll > datetime.now():
|
||||
@@ -264,10 +264,10 @@ def poll_worker(thread_id):
|
||||
|
||||
if not getLock('{0}.{1}'.format(action, device_id), db):
|
||||
releaseLock('{0}.{1}'.format(action, device_id), db)
|
||||
releaseLock('queue.{0}'.format(device_id), db):
|
||||
releaseLock('queue.{0}'.format(device_id), db)
|
||||
continue
|
||||
|
||||
releaseLock('queue.{0}'.format(device_id), db):
|
||||
releaseLock('queue.{0}'.format(device_id), db)
|
||||
try:
|
||||
start_time = time.time()
|
||||
path = poller_path
|
||||
|
||||
Reference in New Issue
Block a user