From 0e8a572018856fdbfc205322c7bb926d2fb8e3d1 Mon Sep 17 00:00:00 2001 From: Cyril Roy Date: Thu, 25 Jun 2026 16:50:44 -0400 Subject: [PATCH] fix: use getint() for findSizeLimit to prevent TypeError This MR fixes a runtime TypeError in the ChannelFinder store (cfstore) caused by configuration values being interpreted as strings instead of integers. ERROR:recceiver.cfstore CF_COMMIT FAILURE: [Failure instance: Traceback: : 'str' object cannot be interpreted as an integer /usr/lib/python3/dist-packages/twisted/python/threadpool.py:269:inContext /usr/lib/python3/dist-packages/twisted/python/threadpool.py:285: /usr/lib/python3/dist-packages/twisted/python/context.py:117:callWithContext /usr/lib/python3/dist-packages/twisted/python/context.py:82:callWithContext /usr/lib/python3/dist-packages/recceiver/cfstore.py:583:_commit_with_thread /usr/lib/python3/dist-packages/recceiver/cfstore.py:1307:poll /usr/lib/python3/dist-packages/recceiver/cfstore.py:1169:_update_channelfinder /usr/lib/python3/dist-packages/recceiver/cfstore.py:1185:cf_set_chunked ] --- server/recceiver/cf/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/recceiver/cf/config.py b/server/recceiver/cf/config.py index 3006d5a1..173c91b1 100644 --- a/server/recceiver/cf/config.py +++ b/server/recceiver/cf/config.py @@ -49,7 +49,7 @@ def loads(cls, conf: ConfigAdapter) -> "CFConfig": env_owner_variable=conf.get("envOwnerVariable", "ENGINEER"), recceiver_id=conf.get("recceiverId", RECCEIVERID_DEFAULT), timezone=conf.get("timezone", ""), - cf_query_limit=conf.get("findSizeLimit", DEFAULT_QUERY_LIMIT), + cf_query_limit=conf.getint("findSizeLimit", DEFAULT_QUERY_LIMIT), base_url=conf.get("baseUrl"), cf_username=conf.get("cfUsername"), cf_password=conf.get("cfPassword"),