Skip to content

fix: use getint() for findSizeLimit to prevent TypeError#172

Open
roycpro wants to merge 1 commit into
ChannelFinder:masterfrom
roycpro:master
Open

fix: use getint() for findSizeLimit to prevent TypeError#172
roycpro wants to merge 1 commit into
ChannelFinder:masterfrom
roycpro:master

Conversation

@roycpro

@roycpro roycpro commented Jun 25, 2026

Copy link
Copy Markdown

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: <class 'TypeError'>: '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
]

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: <class 'TypeError'>: '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:<lambda>
	/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
	]
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant