Comment 16 for bug 1724623

Revision history for this message
Chad Smith (chad.smith) wrote :

Regression discovered for focal-proposed due to type annotations not being parsed on python 3.8. this resulted in tracebacks from python when importing cloud-init's apport/general-hooks module:

......ERROR: hook /usr/share/apport/general-hooks/cloud-init.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 226, in _run_hook
    exec(compile(fd.read(), hook, 'exec'), symb)
  File "/usr/share/apport/general-hooks/cloud-init.py", line 7, in <module>
    def _get_azure_data(ds_data) -> dict[str, str]:
TypeError: 'type' object is not subscriptable