Add a `# type: ignore` comment to the exception handling dashboard
module just like the instance to lines below. This module does not
already import typing, so I'm not going to add it.
This change is needed in order to run mypy 0.981.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit
e767b8643aa6565a6149a600df3d87a7b31f737a)
component = getattr(e, 'component', None)
out['component'] = component if component else None
if include_http_status:
- out['status'] = getattr(e, 'status', 500)
+ out['status'] = getattr(e, 'status', 500) # type: ignore
if task:
out['task'] = dict(name=task.name, metadata=task.metadata) # type: ignore
return out