File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2222def _add_postcode_info (addr : Dict [str , Any ]) -> Dict [str , Any ]:
2323 """Look up postcode info, add keys to address dictionary."""
2424 pn = addr .get ("postnr" )
25- if pn and POSTCODES .get (pn ):
25+ if pn is not None and POSTCODES .get (pn ):
2626 addr .update (POSTCODES [pn ])
2727 return addr
2828
2929def _add_municipality_info (addr : Dict [str , Any ]) -> Dict [str , Any ]:
3030 """Look up municipality info, add keys to address dictionary."""
3131 mn = addr .get ("svfnr" )
32- if mn and MUNICIPALITIES .get (mn ):
32+ if mn is not None and MUNICIPALITIES .get (mn ):
3333 addr ["svfheiti" ] = MUNICIPALITIES [mn ]
3434 return addr
3535
Original file line number Diff line number Diff line change 1010"""
1111
1212import sqlite3
13+
1314from pkg_resources import resource_filename
1415
1516_DB_REL_PATH = "iceaddr.db"
You can’t perform that action at this time.
0 commit comments