Skip to content

Commit 9ac1be3

Browse files
committed
Try-catch renewing of data
1 parent 821e651 commit 9ac1be3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

aikido_zen/thread/process_worker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ def aikido_process_worker_thread():
2424
)
2525

2626
# Renew the cache every 5 seconds
27-
thread_cache.renew()
27+
try:
28+
thread_cache.renew()
29+
except Exception as e:
30+
logger.warn("An error occurred during data synchronization: %s", e)
2831
time.sleep(RENEW_CACHE_EVERY_X_SEC)

0 commit comments

Comments
 (0)