You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Draft channel versions break version comparison because of None #5832
TypeError: '<=' not supported between instances of 'int' and 'NoneType'
(8 additional frame(s) were not displayed)
...
File "kolibri_public/views_v1.py", line 174, in get_public_channel_lookup
channel_list = _serialize_channel_version(channel_list)
File "kolibri_public/views_v1.py", line 74, in _serialize_channel_version
"version_notes": _get_version_notes(channel, channel_version),
File "kolibri_public/views_v1.py", line 36, in _get_version_notes
data = {
File "kolibri_public/views_v1.py", line 39, in <dictcomp>
if int(k) <= channel_version.version
Plan: Fix TypeError: '<=' not supported between instances of 'int' and 'NoneType' in _get_version_notes when channel_version.version is None by adding a None guard that returns all version notes in that case.
Add regression test for None channel_version.version
Fix the None guard in _get_version_notes
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
Implemented code following the pre-approved plan using test-driven development (red-green-refactor)
Ran the project's full test suite and linter before committing
For UI changes: captured live screenshots to verify rendering
For backend changes: verified with example API/CLI output
Activity
rtibblesbot commentedon Apr 16, 2026
Plan: Fix
TypeError: '<=' not supported between instances of 'int' and 'NoneType'in_get_version_noteswhenchannel_version.versionisNoneby adding a None guard that returns all version notes in that case.channel_version.version_get_version_notes@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?