I'd probably set `addon_info` to `addon_info or {}` and then use `.get('name', fallback)` more readily instead of using the repeated `if addon_info is not None` checks, but it's really not consequential.