subiquity crash if LANG is empty and /keyboard api called

Bug #1934408 reported by Dan Bungert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Committed
Undecided
Dan Bungert

Bug Description

unset LANG ; make dryrun-server
curl a/keyboard

yields

Traceback (most recent call last):
  File "/home/dbungert/dev/github/canonical/subiquity/subiquity/common/api/server.py", line 123, in handler
    result = await implementation(**args)
  File "/home/dbungert/dev/github/canonical/subiquity/subiquity/server/controllers/keyboard.py", line 211, in GET
    self.keyboard_list.load_language(
  File "/home/dbungert/dev/github/canonical/subiquity/subiquity/server/controllers/keyboard.py", line 131, in load_language
    if '.' in code:
TypeError: argument of type 'NoneType' is not iterable

Dan Bungert (dbungert)
Changed in subiquity:
assignee: nobody → Dan Bungert (dbungert)
Dan Bungert (dbungert)
Changed in subiquity:
status: New → In Progress
Dan Bungert (dbungert)
Changed in subiquity:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.