limit_length_with_tooltip: 'object of type NoneType has no len()' (missing None guard)
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 78/100
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SACGF/variantgrid
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
SACGF/variantgrid#1884 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SACGF/variantgrid#1740 ·
-
Classification export: accept the 'a' allele shortcut in allele= param (e.g. a9678) and validate Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
SACGF/variantgrid#1615 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SACGF/variantgrid#1602 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SACGF/variantgrid#1600 · 1 comment ·
All issues in SACGF/variantgrid
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100