Skip to content

Commit

Permalink
Removing code from task errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 authored and daviddavis committed Sep 9, 2019
1 parent 3fce961 commit d88c5de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
build
dist
*.egg-info
pip-wheel-metadata/
.settings
*.wpr
*.wpu
Expand Down
1 change: 1 addition & 0 deletions CHANGES/5282.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removing code from task errors.
5 changes: 1 addition & 4 deletions pulpcore/exceptions/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ def exception_to_dict(exc, traceback=None):
:return: dictionary representing the Exception
:rtype: dict
"""
result = {'code': None, 'description': str(exc), 'traceback': traceback}
if isinstance(exc, PulpException):
result['code'] = exc.error_code
return result
return {'description': str(exc), 'traceback': traceback}


class ResourceImmutableError(PulpException):
Expand Down

0 comments on commit d88c5de

Please sign in to comment.