Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`payload.get('username').lower()` => `AttributeError: 'NoneType' object has no attribute 'lower'`

Open
#77 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start in patzilla/util/web/identity/service.py at identity_auth_handler, where the traceback shows the username is read from the payload. Check how requests without a username should be handled and look for nearby tests; the issue does not specify the expected response, so confirm that before changing behavior.

Written by the indexing model from the issue text.

Description

Just found this on prod.

  File "/path/to/site-packages/cornice/service.py", line 493, in wrapper
    response = view_(request)
  File "/path/to/site-packages/patzilla/util/web/identity/service.py", line 56, in identity_auth_handler
    username = payload.get('username').lower()
AttributeError: 'NoneType' object has no attribute 'lower'
Dominant language
Python
Stars
123
Forks
31
Avg merge
1h 6m
Merged PRs (30d)
50

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 ip-tools/patzilla

All issues in ip-tools/patzilla

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.