Ignore:
Timestamp:
1 Dec 2022, 14:37:50 (2 years ago)
Author:
Henrik Bettermann
Message:

Use get.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/export.py

    r17197 r17199  
    4343        """
    4444        if name == 'federalstate':
    45             value = STATES[value]
     45            value = STATES.get(value, None)
    4646        if name == 'lga':
    47             value = LGAS[value]
     47            value = LGAS.get(value, None)
    4848        if name == 'ward':
    49             value = WARDS[value]
     49            value = WARDS.get(value, None)
    5050        if name == 'punit':
    51             value = PUNITS[value]
     51            value = PUNITS.get(value, None)
    5252        return super(
    5353            CustomApplicantExporter, self).mangle_value(
Note: See TracChangeset for help on using the changeset viewer.