Skip to content

Commit

Permalink
Fix error description on exception
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
dralley committed Jan 20, 2021
1 parent f1bec15 commit fb8cc96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulp_smash/pulp3/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PulpTaskError(Exception):

def __init__(self, task):
"""Provide task info to exception."""
description = task.error["description"]
description = task.to_dict()["error"]["description"]
super().__init__(self, f"Pulp task failed ({description})")
self.task = task

Expand Down

0 comments on commit fb8cc96

Please sign in to comment.