limit_length_with_tooltip: 'object of type NoneType has no len()' (missing None guard)

Open Beginner friendly
#1,599 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
backend

Research direction

Open uicore/templatetags/js_tags.py at line 94 and compare limit_length_with_tooltip with the sibling function at line 86, which already handles missing text. Reproduce the classification grouping detail page case if possible; done means None text no longer raises a TypeError.

Written by the indexing model from the issue text.

Description

🤖 Written by Claude

The limit_length_with_tooltip template tag does if limit and len(text) with no guard for text being None, raising TypeError: object of type 'NoneType' has no len(). The sibling function at line 86 already guards with and text.

Crashes the classification grouping detail page (sharianttest). One-line fix.

Location: uicore/templatetags/js_tags.py:94

Rollbar:

(Filed from a 6-month Rollbar triage.)

Dominant language
Python
Stars
31
Forks
3
Avg merge
12h 13m
Merged PRs (30d)
28

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SACGF/variantgrid

All issues in SACGF/variantgrid

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.